using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Ichni.UI { public class ChapterSelectionUIPage : UIPageBase { public RectTransform chapterContainer; public HorizontalLayoutGroup containerLayoutGroup; public GameObject chapterSelectionUIPrefab; private void Start() { foreach (var chapter in ChapterSelectionManager.instance.chapters) { ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent(); item.Initialize(chapter); } } } }