Пример #1
0
    IEnumerator CountDown()
    {
        currentTime = countValue;
        while (currentTime >= 0)
        {
            timeText.text = currentTime.ToString();
            yield return(new WaitForSeconds(1.0f));

            currentTime--;
        }
        timeUpText.text = "TIME's UP!";
        gameController.GameOver();
        colorController.GameOver();
    }