예제 #1
0
    IEnumerator Lose()
    {
        SceneTransition.TransitionIn();
        yield return(new WaitForSeconds(1f));

        SceneManager.LoadScene("LoserScene");
    }
예제 #2
0
    IEnumerator StartGame()
    {
        SceneTransition.TransitionIn();
        yield return(new WaitForSeconds(1f));

        GameObject.Find("DontDestroyOnLoad").GetComponent <ScoreLevelScript>().ResetScore();
        SceneManager.LoadScene("GameScene", LoadSceneMode.Single);
    }