FiE-Game/Assets/Scripts/Fie/UI/FieGameUIDialogCaption.cs

34 lines
535 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using Fie.Manager;
using TMPro;
using UnityEngine;
namespace Fie.UI
{
public class FieGameUIDialogCaption : FieGameUIBase
{
[SerializeField]
private TextMeshProUGUI _captionText;
private void Awake()
{
_captionText.font = FieManagerBehaviour<FieEnvironmentManager>.I.currentFont;
}
public void SetText(string text)
{
if (!(_captionText == null))
{
_captionText.text = text;
}
}
public void ClearText()
{
if (!(_captionText == null))
{
_captionText.text = string.Empty;
}
}
}
}