Class MonoSingleton<T>
Helper class to implement Singleton pattern into Subtitler
public abstract class MonoSingleton<T> : MonoBehaviour where T : Component
Type Parameters
T
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourMonoSingleton<T>
- Derived
Properties
Instance
Gets the instance.
public static T Instance { get; }
Property Value
- T
The instance.
Methods
Awake()
Use this for initialization.
protected virtual void Awake()