public void OnDestroy() { if (Instance == this) { Instance = null; } SuspensionManager.Unregister(this); }
public void Awake() { Instance = this; SuspensionManager.Register(this); }