Пример #1
0
 public override void OnBehaviorEnded(StratusAIBehavior behavior, StratusAIBehavior.Status status)
 {
     stack.RemoveLast();
     //Trace.Script($"Removing {behavior}");
     if (stack.Empty())
     {
         this.OnReset();
     }
 }
Пример #2
0
 public override void OnBehaviorEnded(StratusAIBehavior behavior, StratusAIBehavior.Status status)
 {
     // Modify the current world state due to the previous action
     // We already have a reference to the current action so
     // don't really use the behavior here (it wouldn't know its
     // part of a stateful action anyway)
     this.state.Merge(currentAction.effects);
     ContinuePlan();
 }
 public abstract void OnBehaviorEnded(StratusAIBehavior behavior, StratusAIBehavior.Status status);