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); } }
public void OnLoadLevelMenu(string levelName) { LevelHub.LoadLevel(levelName); }