示例#1
0
    private void LoadNextScene()
    {
        int currentSceneIndex = Library.GetInstance().GetCurrentSceneIndex(_levels);
        int nextSceneIndex    = currentSceneIndex + 2;

        // Load next level if it is not last level

        if (currentSceneIndex != _levels.Count - 1)
        {
            LevelHub.LoadLevel("Level" + nextSceneIndex);
        }
    }
示例#2
0
 public void OnLoadLevelMenu(string levelName)
 {
     LevelHub.LoadLevel(levelName);
 }