|
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}";
|
|
}
|
|
}
|