Feel
5.1
The best way to improve your game's feel and make it extra juicy
|
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... | |
Static Public Attributes | |
static bool | HasInstance => _instance != null |
static T | Current => _instance |
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... | |
virtual void | InitializeSingleton () |
Initializes the singleton. More... | |
Protected Attributes | |
bool | _enabled |
Static Protected Attributes | |
static T | _instance |
Properties | |
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.MMPersistenceManager, and MoreMountains.Tools.MMSoundManager.
|
protectedvirtual |
Initializes the singleton.
|
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
|
static |
|
static |
|
staticget |
Singleton design pattern
The instance.