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); }
public override bool Execute(BehaviourMachine machine, INode parentNode) { base.Execute(machine, parentNode); StateMachine.Execute(machine.ParentStateMachine); return(StateMachine.NodeResult); }
public void OnExecute(BehaviourMachine machine) { OnExecuteEvent?.Invoke(machine, this); }
public virtual bool Execute(BehaviourMachine machine, INode parentNode) { _parentNode = parentNode; OnExecute(machine); return(false); }