Files
ichni_Official/Assets/Scripts/Menu/ChapterSelection/ChapterSelectionManager.cs
SoulliesOfficial bae0bfbc20 perf
2025-07-21 05:42:20 -04:00

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);
}
}
}