예제 #1
0
 public void LoadStarLevelTransition(EpisodeLevelInfo level)
 {
     if (this.gameData.m_episodeLevels[this.m_currentEpisodeIndex].m_showStarLevelTransition)
     {
         this.m_currentLevel     = this.m_levels.IndexOf(level);
         this.m_currentLevelName = level.sceneName;
         Singleton <Loader> .Instance.LoadLevel("StarLevelTransition", GameManager.GameState.StarLevelCutscene, true, true);
     }
     else
     {
         this.LoadLevel(level.sceneName);
     }
 }
예제 #2
0
    private void SetStarsCompletion(EpisodeLevelInfo level, int starCount)
    {
        int num = Mathf.Clamp(starCount, 0, 3);

        GameProgress.SetInt(level.sceneName + "_stars", num, GameProgress.Location.Local);
        GameProgress.SetLevelCompleted(level.sceneName);
        if (num > 0)
        {
            GameProgress.SetChallengeCompleted(level.sceneName, 0, true, true);
        }
        if (num > 1)
        {
            GameProgress.SetChallengeCompleted(level.sceneName, 1, true, true);
        }
        if (num > 2)
        {
            GameProgress.SetChallengeCompleted(level.sceneName, 2, true, true);
        }
    }
예제 #3
0
 public void LoadLevelAfterCutScene(EpisodeLevelInfo level, string cutScene)
 {
     this.m_currentLevel     = this.m_levels.IndexOf(level);
     this.m_currentLevelName = level.sceneName;
     Singleton <Loader> .Instance.LoadLevel(cutScene, GameManager.GameState.Cutscene, true, true);
 }