/// <summary> /// waits for "intermissionTime" before starting the countdown /// </summary> /// <returns></returns> IEnumerator WaitForCountDown() { if (currentWave < waveList.Count) { Debug.Log("Adding message to announcer"); //Show the message to the player announcer.AddMessage("Prepare for Wave " + (currentWave + 1)); //Wait for "intermissionTime" seconds yield return(new WaitForSeconds(intermissionTime)); //start the countdown StartCountdown(countdownTime); } }