summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/DebugCoinDisplay.cs
blob: b2f021dbb2886d85a5fbed06243c050da12e4628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
	}
}