public void StartNextLevel()
 {
     curLevelIndex++;
     if (LevelProgress.GetProgress() < curLevelIndex)
     {
         LevelProgress.SetProgress(curLevelIndex);
     }
     if (curLevelIndex >= curLevelSeries.Length)
     {
         //curLevelIndex = -1;
         tileManager.InitTiles();
         PageNavigationManager.GetInstance().ChangePage("level");
     }
     else
     {
         Debug.Log("Level: " + curLevelIndex + "/" + curLevelSeries.Length);
         StartGame(curLevelSeries[curLevelIndex]);
     }
 }
 public void InfiniteLevelProgress()
 {
     LevelProgress.SetProgress(int.MaxValue);
 }
 public void ResetLevelProgress()
 {
     LevelProgress.SetProgress(0);
 }
Beispiel #4
0
 public void SetProgress(float value)
 {
     levelProgress.SetProgress(value);
 }