示例#1
0
 private void OnLevelEnd(PlayerReachedEndSignal signalData)
 {
     if (signalData.hasWon)
     {
         ChapterData currentChapter = _chapterDataManager.GetCurrentChapter();
         _chapterDataManager.SetChapterLevelAsCompelte(currentChapter.chaper_id, currentLevelData.level_number);
     }
     _player.gameObject.SetActive(false);
 }
示例#2
0
    public void RenderCurrentChapter()
    {
        ChapterData chapter = _chapterDataManager.GetCurrentChapter();

        if (chapter != null)
        {
            RenderChaperLevels(chapter.levels);
        }
        else
        {
            Debug.LogError("Cannot find chapter ");
        }
    }