|
FAST SDK Coding Reference 1.0.5
|
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 | |
Public Attributes inherited from Singleton< T > | |
| bool | dontDestroyOnLoad = false |
| Inspector Set to true if this GameObject should not be destroyed when loading a new scene. | |
Protected Member Functions inherited from Singleton< T > | |
| 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 Protected Attributes inherited from Singleton< T > | |
| 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.