perf
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Ichni
|
||||
|
||||
public ChapterSelectionUIPage chapterSelectionUIPage;
|
||||
public List<ChapterSelectionUnit> chapters;
|
||||
public string currentChapter;
|
||||
public ChapterSelectionUnit currentChapter;
|
||||
}
|
||||
|
||||
public partial class ChapterSelectionManager
|
||||
@@ -23,5 +23,10 @@ namespace Ichni
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
public ChapterSelectionUnit GetChapterByName(string chapterName)
|
||||
{
|
||||
return chapters.Find(chapter => chapter.chapterName == chapterName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user