From 58d9a6505082826310d89b46917a4f8aebab7543 Mon Sep 17 00:00:00 2001 From: Martin Johnson Date: Mon, 18 May 2020 16:02:52 -0400 Subject: [PATCH] test Adding a new file --- UI/Components/DoubleText.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 UI/Components/DoubleText.cs 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