TowerVR  1.0
Singleton< T > Class Template Reference
Inheritance diagram for Singleton< T >:

Static Protected Attributes

static T instance
 

Properties

static T Instance [get]
 

Detailed Description

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

Type Constraints
T :MonoBehaviour 

Member Data Documentation

T Singleton< T >.instance
staticprotected

Property Documentation

T Singleton< T >.Instance
staticget

Returns the instance of this singleton


The documentation for this class was generated from the following file: