Class Singleton<T>
Singleton class
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Singleton<T>
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
public class Singleton<T> : MonoBehaviour where T : Singleton<T>
Type Parameters
Name | Description |
---|---|
T | Class |
Fields
stopLock
Declaration
protected object stopLock
Field Value
Type |
---|
System.Object |
Properties
Instance
Get instance
Declaration
public static T Instance { get; }
Property Value
Type |
---|
T |
Instantiated
If true, it has been instantiated
Declaration
public static bool Instantiated { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Awake()
Called when instance of script is loaded
Declaration
protected virtual void Awake()