Unity_Utils/UI/Components/TextComponent.cs
2020-04-29 22:08:44 -04:00

15 lines
272 B
C#

using TMPro;
using UnityEngine;
namespace Util.UiComponents
{
public class TextComponent : ComponentBase
{
[SerializeField] private TMP_Text text;
public void SetText(string newText)
{
text.text = newText;
}
}
}