protected override BehaviorReturnCode Update(object agent, Blackboard blackboard) { blackboard.SetVariable(variableKey, varValue); ReturnCode = BehaviorReturnCode.Success; return(BehaviorReturnCode.Success); }
public override void Stop(object agent, Blackboard blackboard) { base.Stop(agent, blackboard); _Behavior.Stop(agent, blackboard); }
protected override BehaviorReturnCode Update(object agent, Blackboard blackboard) { return(_Behavior.Behave(agent, blackboard)); }
public virtual void Stop(object agent, Blackboard blackboard) { ReturnCode = BehaviorReturnCode.NotStarted; started = false; Exit(agent, blackboard); }
protected virtual void Exit(object agent, Blackboard blackboard) { }
protected virtual BehaviorReturnCode Update(object agent, Blackboard blackboard) { return(BehaviorReturnCode.Success); }