Exemple #1
0
 private IEnumerator CountdownSecondsFrom(int time)
 {
     playUi.countdownText.gameObject.SetActive(true);
     playUi.timerText.gameObject.SetActive(false);
     while (time > 0)
     {
         playUi.countdownText.text = time.ToString();
         time--;
         yield return(new WaitForSecondsRealtime(1));
     }
     playUi.countdownText.gameObject.SetActive(false);
     playUi.timerText.gameObject.SetActive(true);
     modeController.StartGame();
 }