private IEnumerator endGame() { MemoryController.SelectNumber = selected; yield return(new WaitForSeconds(1)); if (MemoryController.IsLastGame()) { AddScore(); SceneManager.LoadScene("MemoryResult"); } else { MemoryController.NextGame(); SceneManager.LoadScene("MemoryStart"); } }