//Jimmy Vegas Unity 5 Tutorial //These scripts will get your zombiue to die and monitor your health public class ZombieDeath : MonoBehaviour { public int EnemyHealth = 10; public GameObject TheEnemy; public int StatusCheck; void DamageZombie (int DamageAmount) { EnemyHealth -= DamageAmount; } void Update () { if (EnemyHealth <= 0 && StatusCheck == 0) { StatusCheck = 4; TheEnemy.GetComponent ().enabled = true; TheEnemy.GetComponent ().enabled = false; } } } //============================= using UnityEngine.UI; public class GlobalHealth : MonoBehaviour { public static int PlayerHealth = 100; public int InternalHealth; public GameObject HealthDisplay; void Update () { InternalHealth = PlayerHealth; HealthDisplay.GetComponent ().text = "Health: " + PlayerHealth; } }