private IEnumerator LoseCondition() { Pause(); board.Activated = false; // fade to black code yield return(ExitFade()); MainUI.End(); yield return(new WaitForSecondsRealtime(3.0f)); // you lose Debug.Log("Lose!"); Time.timeScale = 1; SceneManager.LoadScene("Menu"); }