Пример #1
0
 public void TakeDamage(CombatBehaviour enemy)
 {
     health -= enemy.combatStats.damage;
     if (!takingDamage)
     {
         StartCoroutine(Flasher(unitController.colorRenderer.material.color));
     }
 }
Пример #2
0
 public bool IsEnemy(CombatBehaviour unit)
 {
     return(this.unitController.team != unit.unitController.team);
 }