Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
    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");
    }
Ejemplo n.º 3
0
 public void OnContinueButtonClick()
 {
     loadingComponent.StartLoadLevel("Map");
 }