Highroad Engine v1.3
|
Persistent singleton. More...
Public Attributes | |
bool | AutomaticallyUnparentOnAwake = true |
if this is true, this singleton will auto detach if it finds itself parented on awake More... | |
Protected Member Functions | |
virtual void | Awake () |
On awake, we check if there's already a copy of the object in the scene. If there's one, we destroy it. More... | |
Protected Attributes | |
bool | _enabled |
Static Protected Attributes | |
static T | _instance |
Properties | |
static bool | HasInstance [get] |
static T | Current [get] |
static T | Instance [get] |
Singleton design pattern More... | |
Persistent singleton.
T | : | Component |
|
protectedvirtual |
On awake, we check if there's already a copy of the object in the scene. If there's one, we destroy it.
Reimplemented in MoreMountains.Tools.MMSoundManager.
|
protected |
|
staticprotected |
bool MoreMountains.Tools.MMPersistentSingleton< T >.AutomaticallyUnparentOnAwake = true |
if this is true, this singleton will auto detach if it finds itself parented on awake
|
staticget |
|
staticget |
|
staticget |
Singleton design pattern
The instance.