![]() |
TopDown Engine v4.3
|
Singleton pattern. More...
Static Public Member Functions | |
static T | TryGetInstance () |
Protected Member Functions | |
virtual void | Awake () |
On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake. More... | |
virtual void | InitializeSingleton () |
Initializes the singleton. More... | |
Static Protected Attributes | |
static T | _instance |
Properties | |
static bool | HasInstance [get] |
static T | Current [get] |
static T | Instance [get] |
Singleton design pattern More... | |
Singleton pattern.
T | : | Component |
|
protectedvirtual |
On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake.
Reimplemented in MoreMountains.TopDownEngine.GUIManager, MoreMountains.TopDownEngine.InputManager, MoreMountains.TopDownEngine.LevelManager, MoreMountains.TopDownEngine.MultiplayerLevelManager, MoreMountains.TopDownEngine.InputSystemManager, MoreMountains.TopDownEngine.InputSystemManagerBase< T >, MoreMountains.TopDownEngine.DeadlineProgressManager, MoreMountains.InventoryEngine.InventoryDemoGameManager, and MoreMountains.Feedbacks.MMTimeManager.
|
protectedvirtual |
Initializes the singleton.
|
static |
|
staticprotected |
|
staticget |
|
staticget |
|
staticget |
Singleton design pattern
The instance.