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

15 lines
301 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class PlayerHealth : MonoBehaviour
{
public TMP_Text text;
void Update()
{
text.text = $"{GameManager.Instance.health} / {GameManager.Instance.startHealth}";
}
}