Ejemplo n.º 1
0
 public void TakeDamage(CombatBehaviour enemy)
 {
     health -= enemy.combatStats.damage;
     if (!takingDamage)
     {
         StartCoroutine(Flasher(unitController.colorRenderer.material.color));
     }
 }
Ejemplo n.º 2
0
 public bool IsEnemy(CombatBehaviour unit)
 {
     return(this.unitController.team != unit.unitController.team);
 }