public bool Attack(Destructible target) { var success = target != null && AttackCondition(target); if (success) { Parent.GetComponent <Executor>().AddOrder(new AttackOrder(target)); } return(success); }
public virtual bool AttackCondition(Destructible target) => true;
public AttackOrder(Destructible target) { Target = target; }