FAST SDK Coding Reference 1.0.3
|
A simple singleton pattern for classes that inherit from MonoBehaviour
with public access to the instance.
More...
Properties | |
static T | Instance [get] |
Provides public access to FAST.Singleton<T>._instance. | |
Additional Inherited Members | |
![]() | |
bool | dontDestroyOnLoad = false |
Inspector Set to true if this GameObject should not be destroyed when loading a new scene. | |
![]() | |
virtual void | Awake () |
Sets FAST.Singleton<T>._instance and destorys any additional instances. | |
virtual void | OnDestroy () |
Sets FAST.Singleton<T>._instance to null when the last instance is destroyed. | |
![]() | |
static T | _instance |
Reference to the singleton instance. | |
A simple singleton pattern for classes that inherit from MonoBehaviour
with public access to the instance.
This implementation is not thread-safe.
T | The type of the derived class. |
T | : | SingletonWithInstance<T> |
|
staticget |
Provides public access to FAST.Singleton<T>._instance.