Esempio n. 1
0
 // 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);
 }
Esempio n. 2
0
 // Update is called once per frame
 protected override void fireAway(Creep curTarget)
 {
     float health = curTarget.getHealth();
     health = health - this.damage;
     curTarget.setHealth(health);
 }