29 lines
697 B
C#
29 lines
697 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream.UI
|
|
{
|
|
public class TerminalRecordItemView : MonoBehaviour
|
|
{
|
|
[SerializeField] private TMP_Text actorNameText;
|
|
[SerializeField] private TMP_Text lineText;
|
|
|
|
public void Init(LineInfo lineInfo)
|
|
{
|
|
if (actorNameText != null)
|
|
{
|
|
actorNameText.text = lineInfo.character.GetActorName();
|
|
actorNameText.ForceMeshUpdate();
|
|
}
|
|
|
|
if (lineText != null)
|
|
{
|
|
lineText.text = lineInfo.GetRecordLine();
|
|
lineText.ForceMeshUpdate();
|
|
}
|
|
|
|
gameObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|