Corgi Engine
v9.1
|
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.CorgiEngine.LevelManager, MoreMountains.Feedbacks.MMTimeManager, MoreMountains.CorgiEngine.GUIManager, MoreMountains.CorgiEngine.RetroAdventureProgressManager, and MoreMountains.InventoryEngine.InventoryDemoGameManager.
|
protectedvirtual |
Initializes the singleton.
|
static |
|
staticprotected |
|
static |
|
static |
|
staticget |
Singleton design pattern
The instance.