Exemple #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);
        }
    }
Exemple #2
0
 public void PlayGame()
 {
     //SceneManager.LoadScene (startLevelName);
     fading.FadeTo(startLevelName);
 }
Exemple #3
0
 public void ResetGame()
 {
     //SceneManager.LoadScene ();
     Time.timeScale = 1f;
     fading.FadeTo(SceneManager.GetActiveScene().name);
 }