Ejemplo 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);
 }
Ejemplo 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);
 }