Class: SingletonDewNetworkBehaviour<T>
- Namespace:
Global - Assembly:
Dew.Core.dll - Inheritance / Derived: DewNetworkBehaviour → Room
csharp
public class SingletonDewNetworkBehaviour<T> : DewNetworkBehaviour, ILogicUpdate where T : MonoBehaviourProperties
| Name | Declaration | Description |
|---|---|---|
instance | public static T instance { get; } | 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. |
softInstance | public static T softInstance { get; } |
Methods
Awake()
csharp
protected override void Awake()