public void TriggerLoadScene()
 {
     if (this.loadSceneFrom == LoadingScreenTrigger.SceneReference.Number)
     {
         LoadingScreenProBase.LoadScene(this.sceneNumber);
     }
     else
     {
         LoadingScreenProBase.LoadScene(this.sceneName);
     }
 }
示例#2
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();
     }
 }
示例#3
0
 public static void LoadScene(string levelName)
 {
     LoadingScreenProBase.targetSceneIndex = -1;
     LoadingScreenProBase.targetSceneName  = levelName;
     LoadingScreenProBase.LoadLoadingScene();
 }
 public void LoadScene(string name)
 {
     LoadingScreenProBase.LoadScene(name);
 }
 public void LoadScene(int number)
 {
     LoadingScreenProBase.LoadScene(number);
 }