예제 #1
0
        public override bool Execute(BehaviourMachine machine, INode parentNode)
        {
            base.Execute(machine, parentNode);

            var result = false;

            foreach (var node in ChildNodes)
            {
                result = node.Execute(machine, this);
                if (result)
                {
                    break;
                }
            }

            return(result);
        }
예제 #2
0
 public override bool Execute(BehaviourMachine machine, INode parentNode)
 {
     base.Execute(machine, parentNode);
     StateMachine.Execute(machine.ParentStateMachine);
     return(StateMachine.NodeResult);
 }
예제 #3
0
 public void OnExecute(BehaviourMachine machine)
 {
     OnExecuteEvent?.Invoke(machine, this);
 }
예제 #4
0
 public virtual bool Execute(BehaviourMachine machine, INode parentNode)
 {
     _parentNode = parentNode;
     OnExecute(machine);
     return(false);
 }