private void Awake() { if (_instance == null) { _instance = this; } else { Destroy(this); } }
protected virtual void OnDisable() { CriMonoBehaviourManager.UnRegister(this); }
private void Awake() { if (_instance == null) { _instance = this; } else { Destroy(this); } }
protected virtual void OnDisable() { CriMonoBehaviourManager.UnRegister(this); }