public override TaskStatus OnUpdate() { CurrentExecutionItem_Cached = CurrentExecutionItem.Value; CurrentExecutionTarget_Cached = CurrentExecutionTarget.Value; var _taskResult = behaviorActions.EvaluateTacticsSuccessful(ref CurrentExecutionItem_Cached, ref CurrentExecutionTarget_Cached) ? TaskStatus.Success : TaskStatus.Failure; CurrentExecutionItem.Value = CurrentExecutionItem_Cached; CurrentExecutionTarget.Value = CurrentExecutionTarget_Cached; return(_taskResult); }
public override TaskStatus OnUpdate() { CurrentExecutionItem_Cached = CurrentExecutionItem.Value; CurrentExecutionTarget_Cached = CurrentExecutionTarget.Value; PreviousExecutionItem_Cached = PreviousExecutionItem.Value; PreviousExecutionTarget_Cached = PreviousExecutionTarget.Value; var _taskResult = behaviorActions.HasNewTacticsItem(ref CurrentExecutionItem_Cached, ref CurrentExecutionTarget_Cached, ref PreviousExecutionItem_Cached, ref PreviousExecutionTarget_Cached, CheckPreviousNullInstead.Value) ? TaskStatus.Success : TaskStatus.Failure; CurrentExecutionItem.Value = CurrentExecutionItem_Cached; CurrentExecutionTarget.Value = CurrentExecutionTarget_Cached; PreviousExecutionItem.Value = PreviousExecutionItem_Cached; PreviousExecutionTarget.Value = PreviousExecutionTarget_Cached; return(_taskResult); }
public override TaskStatus OnUpdate() { CurrentExecutionItem_Cached = CurrentExecutionItem.Value; CurrentExecutionTarget_Cached = CurrentExecutionTarget.Value; PreviousExecutionItem_Cached = PreviousExecutionItem.Value; PreviousExecutionTarget_Cached = PreviousExecutionTarget.Value; var _taskResult = behaviorActions.ExecuteTacticsItem(ref CurrentExecutionItem_Cached, ref CurrentExecutionTarget_Cached, ref PreviousExecutionItem_Cached, ref PreviousExecutionTarget_Cached, StopPerformingTask.Value) ? TaskStatus.Success : TaskStatus.Failure; CurrentExecutionItem.Value = CurrentExecutionItem_Cached; CurrentExecutionTarget.Value = CurrentExecutionTarget_Cached; PreviousExecutionItem.Value = PreviousExecutionItem_Cached; PreviousExecutionTarget.Value = PreviousExecutionTarget_Cached; return(_taskResult); }