Ejemplo n.º 1
0
        public bool Attack(Destructible target)
        {
            var success = target != null && AttackCondition(target);

            if (success)
            {
                Parent.GetComponent <Executor>().AddOrder(new AttackOrder(target));
            }
            return(success);
        }
Ejemplo n.º 2
0
 public virtual bool AttackCondition(Destructible target) => true;
Ejemplo n.º 3
0
 public AttackOrder(Destructible target)
 {
     Target = target;
 }