// Update is called once per frame. EXCEPT NOT!!! protected override void fireAway(Creep curTarget) { float health = curTarget.getHealth(); health = health - this.damage; curTarget.setHealth(health); atkCooldown = 0; Debug.Log("Zombie attacked " + curTarget); }
// Update is called once per frame protected override void fireAway(Creep curTarget) { float health = curTarget.getHealth(); health = health - this.damage; curTarget.setHealth(health); }