Files
ichni_Official/Assets/Scripts/UI/ChapterSelection/ChapterSelectionUIPage.cs
SoulliesOfficial b19469976a Menu基本完成
2025-06-14 14:42:49 -04:00

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