private void OnLevelEnd(PlayerReachedEndSignal signalData) { if (signalData.hasWon) { ChapterData currentChapter = _chapterDataManager.GetCurrentChapter(); _chapterDataManager.SetChapterLevelAsCompelte(currentChapter.chaper_id, currentLevelData.level_number); } _player.gameObject.SetActive(false); }
public void RenderCurrentChapter() { ChapterData chapter = _chapterDataManager.GetCurrentChapter(); if (chapter != null) { RenderChaperLevels(chapter.levels); } else { Debug.LogError("Cannot find chapter "); } }