Files
ichni_Official/Assets/Scripts/UI/ChapterSelection/ChapterSelectionUIPage.cs

24 lines
689 B
C#
Raw Normal View History

2025-06-06 10:14:55 -04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2025-06-09 04:52:14 -04:00
using UnityEngine.UI;
2025-06-06 10:14:55 -04:00
namespace Ichni.UI
{
public class ChapterSelectionUIPage : UIPageBase
{
public RectTransform chapterContainer;
2025-06-09 04:52:14 -04:00
public HorizontalLayoutGroup containerLayoutGroup;
2025-06-06 10:14:55 -04:00
public GameObject chapterSelectionUIPrefab;
private void Start()
{
foreach (var chapter in ChapterSelectionManager.instance.chapters)
{
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();
item.Initialize(chapter);
}
}
}
}