Class ManagerBase<T>
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ManagerBase<T>
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
[LogicUpdatePriority(-380)]
public class ManagerBase<T> : LogicBehaviour, ILogicUpdate where T : LogicBehaviour
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
instance
If you expect the instance to be null, you MUST USE softInstance in Update loops.
This will call FindObjectOfType if current instance is null, which can be very expensive.
Declaration
public static T instance { get; }
Property Value
| Type | Description |
|---|---|
| T |
softInstance
Declaration
public static T softInstance { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
Awake()
Declaration
protected virtual void Awake()
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()