示例#1
0
    public void SelectLevel(int number)
    {
        if (PlayerPrefs.GetInt("levelNumber") == 0)
        {
            PlayerPrefs.SetInt("levelNumber", 1);
        }

        if (PlayerPrefs.GetInt("levelNumber") >= number)
        {
            fading.FadeTo("Level" + number);
        }
    }
示例#2
0
 public void PlayGame()
 {
     //SceneManager.LoadScene (startLevelName);
     fading.FadeTo(startLevelName);
 }
示例#3
0
 public void ResetGame()
 {
     //SceneManager.LoadScene ();
     Time.timeScale = 1f;
     fading.FadeTo(SceneManager.GetActiveScene().name);
 }