3DTD/Assets/Scripts/UI/BalanceDisplay.cs

21 lines
391 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class BalanceDisplay : MonoBehaviour
{
public TMP_Text text;
private void Update()
{
// idgaf
UpdateText(GameManager.Instance.Balance.Value);
}
private void UpdateText(float balance)
{
text.text = $"$ {balance}";
}
}