Exemple #1
0
 private void Start()
 {
     gm  = GameManager.getInstance();
     pm  = PlayerManager.getInstance();
     em  = EnemiesManager.getInstance();
     wsm = WaveSpawnerManager.getInstance();
     gm.AIStartTurnEvent += takeTurn;
     initReferences();
 }
Exemple #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }