예제 #1
0
파일: Fighter.cs 프로젝트: girvel/Imperium
        public bool Attack(Destructible target)
        {
            var success = target != null && AttackCondition(target);

            if (success)
            {
                Parent.GetComponent <Executor>().AddOrder(new AttackOrder(target));
            }
            return(success);
        }
예제 #2
0
파일: Fighter.cs 프로젝트: girvel/Imperium
 public virtual bool AttackCondition(Destructible target) => true;
예제 #3
0
 public AttackOrder(Destructible target)
 {
     Target = target;
 }