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