using System; using System.Collections; using System.Collections.Generic; using Ichni.Menu; using Ichni.UI; using Sirenix.OdinInspector; using UnityEngine; namespace Ichni { public partial class ChapterSelectionManager : SerializedMonoBehaviour { public static ChapterSelectionManager instance; public ChapterSelectionUIPage chapterSelectionUIPage; public List chapters; public TutorialCollection tutorialCollection; public ChapterSelectionUnit currentChapter; } public partial class ChapterSelectionManager { private void Awake() { instance = this; } public ChapterSelectionUnit GetChapterByName(string chapterName) { return chapters.Find(chapter => chapter.chapterName == chapterName); } } }