30 lines
711 B
C#
30 lines
711 B
C#
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using TMPro;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
namespace Ichni.Story.UI
|
||
|
|
{
|
||
|
|
public class TextBlockUI : StoryBlockUIBase
|
||
|
|
{
|
||
|
|
public string blockName;
|
||
|
|
public string blockTitle;
|
||
|
|
public Button button;
|
||
|
|
public TMP_Text titleText;
|
||
|
|
|
||
|
|
public void Initialize(string blockName, string blockTitle)
|
||
|
|
{
|
||
|
|
this.blockName = blockName;
|
||
|
|
this.blockTitle = blockTitle;
|
||
|
|
|
||
|
|
titleText.text = blockTitle;
|
||
|
|
button.onClick.AddListener(() =>
|
||
|
|
{
|
||
|
|
DialogManager.instance.SetDialog(blockName);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|