Class Singleton<T>
Utility class to make inheriting types singletons.
public class Singleton<T> : MonoBehaviour where T : Component
Type Parameters
T
The type to be made a singleton.
- Inheritance
-
System.ObjectSingleton<T>
Properties
Instance
The active instance of type T
.
public static T Instance { get; }
Property Value
- T