public void LoadLevel(string levelName) { string[] data = levelName.Split('-'); int[] level = new int[2]; level[0] = Convert.ToInt32(data[0]); level[1] = Convert.ToInt32(data[1]); GameData.Instance.SetCurrentLevel(level[0], level[1]); loadingComponent.StartLoadLevel("LevelScene"); }
public void StartGame() { Debug.Log("LoadScene('LevelScene')"); //SceneManager.LoadScene("LevelScene"); //set current level to next available level GameData.Instance.SetCurrentLevel(PlayerDataController.Instance.Data.CurrentStage, PlayerDataController.Instance.Data.CurrentLevel); loadingComponent.StartLoadLevel("LevelScene"); }
public void OnContinueButtonClick() { loadingComponent.StartLoadLevel("Map"); }