Пример #1
0
 public abstract void DoAction(BattleUnit unit, BattleUnit enemy);
Пример #2
0
 public bool WithinRange(BattleUnit unit, BattleUnit enemy)
 {
     return((unit.pos - enemy.pos).magnitude < unit.attackRange);
 }