UnityCommunity / UnitySingleton

The best way to implement singleton pattern in Unity.
https://en.wikipedia.org/wiki/Singleton_pattern
MIT License
458 stars 61 forks source link

How about "public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>" #3

Closed yaohairong closed 11 months ago

yaohairong commented 4 years ago

otherwise can we write "class MySingleton : Singleton?"