Highroad Engine v1.3
Static Public Member Functions | Protected Member Functions | Static Protected Attributes | Properties | List of all members
MoreMountains.Tools.MMSingleton< T > Class Template Reference

Singleton pattern. More...

Inheritance diagram for MoreMountains.Tools.MMSingleton< T >:

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...
 

Static Protected Attributes

static T _instance
 

Properties

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

Detailed Description

Singleton pattern.

Type Constraints
T :Component 

Member Function Documentation

◆ Awake()

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

On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake.

◆ TryGetInstance()

static 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: