예제 #1
0
 public void LoadLevel(int levelNumber)
 {
     if (worldNumber <= worldProgress)
     {
         if (levelNumber <= levelProgress + 1)     //we want to have access to the level already cleared and the next one
         //SceneManager.LoadScene("world"+(worldNumber+1).ToString()+"_Level" + levelNumber.ToString());
         {
             UIManager.FadeOutToScene("world" + (worldNumber + 1).ToString() + "_Level" + levelNumber.ToString());
         }
     }
 }