TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Tools.MMSingleton< T > Class Template Reference

Singleton pattern. More...

Inheritance diagram for MoreMountains.Tools.MMSingleton< T >:
MoreMountains.Feedbacks.MMTimeManager MoreMountains.InventoryEngine.InventoryDemoGameManager MoreMountains.TopDownEngine.CharacterSwapManager MoreMountains.TopDownEngine.DeadlineProgressManager MoreMountains.TopDownEngine.GUIManager MoreMountains.TopDownEngine.GridManager MoreMountains.TopDownEngine.InputManager MoreMountains.TopDownEngine.KillsManager MoreMountains.TopDownEngine.LevelManager MoreMountains.TopDownEngine.ProximityManager

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.
virtual void InitializeSingleton ()
 Initializes the singleton.

Static Protected Attributes

static T _instance

Properties

static bool HasInstance [get]
static T Current [get]
static T Instance [get]
 Singleton design pattern.

Detailed Description

Singleton pattern.

Type Constraints
T :Component 

Member Function Documentation

◆ Awake()

◆ InitializeSingleton()

virtual void MoreMountains.Tools.MMSingleton< T >.InitializeSingleton ( )
protectedvirtual

Initializes the singleton.

◆ TryGetInstance()

T MoreMountains.Tools.MMSingleton< T >.TryGetInstance ( )
static

Member Data Documentation

◆ _instance

T MoreMountains.Tools.MMSingleton< T >._instance
staticprotected

Property Documentation

◆ Current

T MoreMountains.Tools.MMSingleton< T >.Current
staticget

◆ HasInstance

bool MoreMountains.Tools.MMSingleton< T >.HasInstance
staticget

◆ Instance

T MoreMountains.Tools.MMSingleton< T >.Instance
staticget

Singleton design pattern.

The instance.


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMTools/Core/MMSingletons/MMSingleton.cs