Пример #1
0
    public override void Execute()
    {
        // Load next scene
        string nextSceneName = LevelOrder.NextLevel;

        Debug.Log("next scene: " + nextSceneName);

        if (nextSceneName != "")
        {
            LevelOrder.SetNextLevel();
            SceneManager.LoadScene(nextSceneName);
        }
    }
Пример #2
0
    public override void Execute()
    {
        string nextSceneName = LevelOrder.levelIndex(index);

        if (nextSceneName != "")
        {
            if (setNextLevel)
            {
                LevelOrder.SetNextLevel();
            }
            SceneManager.LoadScene(nextSceneName);
        }
    }