private void Awake() { if (Instance == null) { Instance = this; } else { DestroyImmediate(this.gameObject); } }
public void Detach() { _gameState = null; }
public void Attach(GameStateSingleton observer) { _gameState = observer; }