Class ManagerBehaviour<TManager>
Extending this class creates a MonoBehaviour which may only have on instance and will not be destroyed between scenes. When extending, the type of the inheriting class must be passed.
Inheritance
MonoBehaviour
ManagerBehaviour<TManager>
Namespace: Alegra.DimSums
Assembly: cs.temp.dll.dll
Syntax
public abstract class ManagerBehaviour<TManager> : MonoBehaviour where TManager : ManagerBehaviour<TManager>
Type Parameters
Name | Description |
---|---|
TManager | The type of manager to be created. |
Properties
Instance
Gets the singleton instance of the Manager
Declaration
public static TManager Instance { get; }
Property Value
Type | Description |
---|---|
TManager |