Beispiel #1
0
        public bool Attack(Destructible target)
        {
            var success = target != null && AttackCondition(target);

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