Class Singleton<T>
Syntax
public static class Singleton<T>
where T : MonoBehaviour, ISingleton
Type Parameters
Properties
instance
Declaration
public static T instance { get; }
Property Value
instantiated
Declaration
public static bool instantiated { get; }
Property Value
Methods
Awake(T)
Declaration
public static void Awake(T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|
Instantiate()
Declaration
public static T Instantiate()
Returns
OnDestroy(T)
Declaration
public static void OnDestroy(T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|