Exemple #1
0
 private void OnTimeExpired(CounterController cc)
 {
     cc.TimeExpired -= OnTimeExpired;
     cc.Stop();
     counterPanel.SetActive(false);
     ShowEndGameScreen();
 }
Exemple #2
0
 private void OnWorkerCreated(GameObject queen)
 {
     if (noWorker)
     {
         noWorker = false;
         CounterController cc = counterPanel.GetComponent <CounterController>();
         cc.TimeExpired -= OnTimeExpired;
         cc.Stop();
         counterPanel.SetActive(false);
     }
 }