32 lines
821 B
C#
32 lines
821 B
C#
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<ChapterSelectionUnit> chapters;
|
|
public ChapterSelectionUnit currentChapter;
|
|
}
|
|
|
|
public partial class ChapterSelectionManager
|
|
{
|
|
private void Awake()
|
|
{
|
|
instance = this;
|
|
}
|
|
|
|
public ChapterSelectionUnit GetChapterByName(string chapterName)
|
|
{
|
|
return chapters.Find(chapter => chapter.chapterName == chapterName);
|
|
}
|
|
}
|
|
} |