IEnumerator LevelTimer() { print(_countDownStartValue); if (_countDownStartValue > 0) { _countDownCurrentValue = CountDownTimer(_countDownStartValue); yield return(new WaitForSeconds(1)); } else { TimerTextUI.color = Color.red; TimerTextUI.text = "Game Over"; yield return(new WaitForSeconds(3)); sceneChange.GameOverSceneChange(); } }