Haply::Inverse::Unity::Utilities::Singleton
A generic singleton class for MonoBehaviour. More...
Inherits from MonoBehaviour
Public Functions
Name | |
---|---|
bool | Exists() |
Protected Functions
Name | |
---|---|
virtual void | Awake() |
virtual void | OnEnable() |
virtual void | OnDisable() |
virtual void | OnDestroy() |
virtual void | OnApplicationQuit() |
virtual void | Update() |
Public Properties
Name | |
---|---|
T | Instance Gets the instance of the singleton class. |
Protected Properties
Name | |
---|---|
bool | ApplicationIsQuitting |
Detailed Description
template <T >
class Haply::Inverse::Unity::Utilities::Singleton;
A generic singleton class for MonoBehaviour.
Template Parameters:
- T Type of the singleton class.
Public Functions Documentation
function Exists
static bool Exists()
Protected Functions Documentation
function Awake
virtual void Awake()
Reimplemented by: Haply::Inverse::Unity::DeviceMapper::Awake, Haply::Inverse::Unity::EventDispatcher::Awake
function OnEnable
virtual void OnEnable()
Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnEnable
function OnDisable
virtual void OnDisable()
Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnDisable
function OnDestroy
virtual void OnDestroy()
Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnDestroy
function OnApplicationQuit
virtual void OnApplicationQuit()
function Update
virtual void Update()
Reimplemented by: Haply::Inverse::Unity::DeviceMapper::Update, Haply::Inverse::Unity::EventDispatcher::Update
Public Property Documentation
property Instance
static T Instance;
Gets the instance of the singleton class.
Protected Property Documentation
property ApplicationIsQuitting
static bool ApplicationIsQuitting;