public override void Execute() { // Load next scene string nextSceneName = LevelOrder.NextLevel; Debug.Log("next scene: " + nextSceneName); if (nextSceneName != "") { LevelOrder.SetNextLevel(); SceneManager.LoadScene(nextSceneName); } }
public override void Execute() { string nextSceneName = LevelOrder.levelIndex(index); if (nextSceneName != "") { if (setNextLevel) { LevelOrder.SetNextLevel(); } SceneManager.LoadScene(nextSceneName); } }