示例#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);
 }