diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/DebugCoinDisplay.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/DebugCoinDisplay.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/DebugCoinDisplay.cs b/Thronefall_v1.0/Decompile/DebugCoinDisplay.cs new file mode 100644 index 0000000..b2f021d --- /dev/null +++ b/Thronefall_v1.0/Decompile/DebugCoinDisplay.cs @@ -0,0 +1,19 @@ +using TMPro; +using UnityEngine; + +public class DebugCoinDisplay : MonoBehaviour +{ + public TextMeshProUGUI target; + + private PlayerInteraction player; + + private void Start() + { + player = Object.FindObjectOfType<PlayerInteraction>(); + } + + private void Update() + { + target.text = player.Balance.ToString(); + } +} |