private void StartChapter(Content.Nightmare1 button) { if (!IsChapterUnlocked(button)) { return; } PlayClickedSound(); Nightmare1ChapterSelector.SelectChapter(button); }
private bool IsChapterUnlocked(Content.Nightmare1 chapterButton) { return(unlockedChapters.Contains(chapterButton)); }
private void AttachChapterButtonEvent(Content.Nightmare1 button) { var chapterButton = (InteractiveButton)GetSceneControl(button.ToString()); chapterButton.Clicked += () => StartChapter(button); }