Class LazySingletonBehaviour<T>
A singleton MonoBehaviour that inherits from SuperBehaviour.
NOTE: This will create a new instance if one does not exist.
See SingletonBehaviour<T> for more information on how to use this class.
public class LazySingletonBehaviour<T> : SingletonBehaviour<T> where T : SuperBehaviour
Type Parameters
T
The type of the singleton.
- Inheritance
-
LazySingletonBehaviour<T>
- Inherited Members
Properties
Instance
The singleton instance of this class.
NOTE: This will create a new instance if one does not exist.
public static T Instance { get; }
Property Value
- T