1
This commit is contained in:
29
Assets/Scripts/UI/StoryUI/SongBlockUI.cs
Normal file
29
Assets/Scripts/UI/StoryUI/SongBlockUI.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Ichni.Story.UI
|
||||
{
|
||||
public class SongBlockUI : StoryBlockUIBase
|
||||
{
|
||||
public string blockName;
|
||||
public string songName;
|
||||
public Button button;
|
||||
public TMP_Text musicText;
|
||||
|
||||
public void Initialize(string blockName, string songName)
|
||||
{
|
||||
this.blockName = blockName;
|
||||
this.songName = songName;
|
||||
|
||||
musicText.text = songName;
|
||||
button.onClick.AddListener(() =>
|
||||
{
|
||||
MenuManager.instance.prepareUIPage.FadeIn();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user