So within my script, I can see the amount of health a player has in the Inspect Panel in Editing View. So I was wondering if there was a way to display this as text on UI was possible?
public static int currentHealth = 30;
public int internalHealth;
void Update()
{
internalHealth = currentHealth;
if (currentHealth <= 0)
{
SceneManager.LoadScene(0);
GlobalHealth3.currentHealth = 30;
}
}