IEnumerator GameOver(float waitTime) { Debug.Log("ending"); yield return(new WaitForSeconds(waitTime)); manager.EndGame(); }