1
This commit is contained in:
22
Assets/Scripts/UI/ChapterSelection/ChapterSelectionUIPage.cs
Normal file
22
Assets/Scripts/UI/ChapterSelection/ChapterSelectionUIPage.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.UI
|
||||
{
|
||||
public class ChapterSelectionUIPage : UIPageBase
|
||||
{
|
||||
public RectTransform chapterContainer;
|
||||
|
||||
public GameObject chapterSelectionUIPrefab;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
foreach (var chapter in ChapterSelectionManager.instance.chapters)
|
||||
{
|
||||
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();
|
||||
item.Initialize(chapter);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user