This commit is contained in:
SoulliesOfficial
2025-08-22 14:54:40 -04:00
parent 6aa498f6be
commit 70b2a43824
574 changed files with 173713 additions and 1884 deletions

View File

@@ -15,6 +15,8 @@ namespace Ichni.UI
protected override void Awake()
{
base.Awake();
fadeInStartAction = Initialize;
settingsButton.onClick.AddListener(() =>
{
@@ -23,8 +25,14 @@ namespace Ichni.UI
});
}
private void Start()
private void Initialize()
{
// Clear existing chapters
foreach (Transform child in chapterContainer)
{
Destroy(child.gameObject);
}
foreach (var chapter in ChapterSelectionManager.instance.chapters)
{
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();