TowerVR
1.0
|
Static Protected Attributes | |
static T | instance |
Properties | |
static T | Instance [get] |
Singleton is a design pattern for ensuring that a class only ever has a single instance. Each class that inherits from this abstract base class will automatically be a singleton, given that an instance of the class is attached to a GameObject.
The singleton instance is retrieved by calling "ClassName".Instance
T | : | MonoBehaviour |
|
staticprotected |
|
staticget |
Returns the instance of this singleton