update
This commit is contained in:
@@ -15,6 +15,8 @@ namespace Ichni.UI
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
|
||||
fadeInStartAction = Initialize;
|
||||
|
||||
settingsButton.onClick.AddListener(() =>
|
||||
{
|
||||
@@ -23,8 +25,14 @@ namespace Ichni.UI
|
||||
});
|
||||
}
|
||||
|
||||
private void Start()
|
||||
private void Initialize()
|
||||
{
|
||||
// Clear existing chapters
|
||||
foreach (Transform child in chapterContainer)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
foreach (var chapter in ChapterSelectionManager.instance.chapters)
|
||||
{
|
||||
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();
|
||||
|
||||
Reference in New Issue
Block a user