Files
ichni_Official/Assets/Scripts/UI/ChapterSelection/ChapterSelectionUIPage.cs
SoulliesOfficial 27529d44dc 选章节
2025-06-09 04:52:14 -04:00

24 lines
689 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);
}
}
}
}