Esempio n. 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         DestroyImmediate(this.gameObject);
     }
 }
Esempio n. 2
0
 public void Detach()
 {
     _gameState = null;
 }
Esempio n. 3
0
 public void Attach(GameStateSingleton observer)
 {
     _gameState = observer;
 }