Persistent singleton.
More...
Inherits MonoBehaviour.
Inherited by MoreMountains.Tools.MMPersistenceManager, and MoreMountains.Tools.MMSoundManager.
|
virtual void | Awake () |
| On awake, we check if there's already a copy of the object in the scene.
|
virtual void | InitializeSingleton () |
| Initializes the singleton.
|
◆ Awake()
virtual void MoreMountains.Tools.MMPersistentSingleton< T >.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ InitializeSingleton()
virtual void MoreMountains.Tools.MMPersistentSingleton< T >.InitializeSingleton |
( |
| ) |
|
|
protectedvirtual |
Initializes the singleton.
◆ _enabled
bool MoreMountains.Tools.MMPersistentSingleton< T >._enabled |
|
protected |
◆ _instance
T MoreMountains.Tools.MMPersistentSingleton< T >._instance |
|
staticprotected |
◆ AutomaticallyUnparentOnAwake
bool MoreMountains.Tools.MMPersistentSingleton< T >.AutomaticallyUnparentOnAwake = true |
if this is true, this singleton will auto detach if it finds itself parented on awake
◆ Current
T MoreMountains.Tools.MMPersistentSingleton< T >.Current |
|
staticget |
◆ HasInstance
bool MoreMountains.Tools.MMPersistentSingleton< T >.HasInstance |
|
staticget |
◆ Instance
T MoreMountains.Tools.MMPersistentSingleton< T >.Instance |
|
staticget |
Singleton design pattern.
The instance.
The documentation for this class was generated from the following file: