TopDown Engine
v4.2
|
Singleton pattern. More...
Static Public Member Functions | |
static T | TryGetInstance () |
Static Public Attributes | |
static bool | HasInstance => _instance != null |
static T | Current => _instance |
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 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.InputManager, MoreMountains.Feedbacks.MMTimeManager, MoreMountains.TopDownEngine.LevelManager, MoreMountains.TopDownEngine.DeadlineProgressManager, MoreMountains.TopDownEngine.GUIManager, MoreMountains.TopDownEngine.MultiplayerLevelManager, MoreMountains.TopDownEngine.InputSystemManager, MoreMountains.InventoryEngine.InventoryDemoGameManager, and MoreMountains.TopDownEngine.InputSystemManagerBase< T >.
|
protectedvirtual |
Initializes the singleton.
|
static |
|
staticprotected |
|
static |
|
static |
|
staticget |
Singleton design pattern
The instance.