void Awake() { tookDamageEvent = new TookDamageEvent(); floatingTextPrefab = (Resources.Load("FloatingText") as GameObject).GetComponent <FloatingText>(); tookDamageEvent.AddListener(DisplayDamage); }
void Awake() { tookDamageEvent = new TookDamageEvent(); health = maxHealth; }