Beispiel #1
0
 public static void LoadScene(int levelNum)
 {
     if (!LoadingScreenProBase.IsLegalLevelIndex(levelNum))
     {
         Debug.LogWarning((object)("No Scene with Buildindex " + (object)levelNum + " found."));
         LoadingScreenProBase.targetSceneName = (string)null;
     }
     else
     {
         LoadingScreenProBase.targetSceneIndex = levelNum;
         LoadingScreenProBase.targetSceneName  = (string)null;
         LoadingScreenProBase.LoadLoadingScene();
     }
 }
Beispiel #2
0
 public static void LoadScene(string levelName)
 {
     LoadingScreenProBase.targetSceneIndex = -1;
     LoadingScreenProBase.targetSceneName  = levelName;
     LoadingScreenProBase.LoadLoadingScene();
 }