Inventory Engine
v4.0
|
Singleton pattern. More...
Inherits MonoBehaviour.
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. 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.Feedbacks.MMTimeManager, and MoreMountains.InventoryEngine.InventoryDemoGameManager.
|
protectedvirtual |
Initializes the singleton.
|
static |
|
staticprotected |
|
static |
|
static |
|
staticget |
Singleton design pattern
The instance.