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