예제 #1
0
 protected override BehaviorReturnCode Update(object agent, Blackboard blackboard)
 {
     blackboard.SetVariable(variableKey, varValue);
     ReturnCode = BehaviorReturnCode.Success;
     return(BehaviorReturnCode.Success);
 }
예제 #2
0
 public override void Stop(object agent, Blackboard blackboard)
 {
     base.Stop(agent, blackboard);
     _Behavior.Stop(agent, blackboard);
 }
예제 #3
0
 protected override BehaviorReturnCode Update(object agent, Blackboard blackboard)
 {
     return(_Behavior.Behave(agent, blackboard));
 }
예제 #4
0
 public virtual void Stop(object agent, Blackboard blackboard)
 {
     ReturnCode = BehaviorReturnCode.NotStarted;
     started    = false;
     Exit(agent, blackboard);
 }
예제 #5
0
 protected virtual void Exit(object agent, Blackboard blackboard)
 {
 }
예제 #6
0
 protected virtual BehaviorReturnCode Update(object agent, Blackboard blackboard)
 {
     return(BehaviorReturnCode.Success);
 }