29 lines
727 B
C#
29 lines
727 B
C#
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();
|
|
});
|
|
}
|
|
}
|
|
} |