Class SingletonBehaviour<T>
Base MonoBehaviour clas that implements the singleton pattern
Inheritance
SingletonBehaviour<T>
Namespace: Doozy.Runtime.Common
Assembly: cs.temp.dll.dll
Syntax
public abstract class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviour
Type Parameters
Name | Description |
---|---|
T | Class type |
Fields
IsQuitting
Flag that returns TRUE if the application is quitting
Declaration
public static bool IsQuitting
Field Value
Type | Description |
---|---|
Boolean |
Properties
instance
Get singleton instance
Declaration
public static T instance { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Awake()
Declaration
protected virtual void Awake()
OnDestroy()
Declaration
protected virtual void OnDestroy()