예제 #1
0
    private IEnumerator endGame()
    {
        MemoryController.SelectNumber = selected;
        yield return(new WaitForSeconds(1));

        if (MemoryController.IsLastGame())
        {
            AddScore();
            SceneManager.LoadScene("MemoryResult");
        }
        else
        {
            MemoryController.NextGame();
            SceneManager.LoadScene("MemoryStart");
        }
    }