25 lines
745 B
C#
25 lines
745 B
C#
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<ChapterSelectionUI>();
|
|
item.Initialize(chapter);
|
|
item.chapterName = chapter.chapterName;
|
|
}
|
|
}
|
|
}
|
|
} |