diff --git a/UI/Components/DoubleText.cs b/UI/Components/DoubleText.cs new file mode 100644 index 0000000..3db554e --- /dev/null +++ b/UI/Components/DoubleText.cs @@ -0,0 +1,15 @@ +using TMPro; +using UnityEngine; + +namespace Util.UiComponents +{ + public class TextComponent : ComponentBase + { + [SerializeField] private TMP_Text text; + + public void SetText(string newText) + { + text.text = newText; + } + } +} \ No newline at end of file