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(); } }
public static void LoadScene(string levelName) { LoadingScreenProBase.targetSceneIndex = -1; LoadingScreenProBase.targetSceneName = levelName; LoadingScreenProBase.LoadLoadingScene(); }