//Jimmy Vegas Unity Tutorial //This script is for the health using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GlobalHealth : MonoBehaviour { public GameObject healthDisplay; public static int healthValue; public int internalHealth; void Start() { healthValue = 100; } void Update() { internalHealth = healthValue; healthDisplay.GetComponent().text = "" + healthValue + "%"; } }