/// <summary> /// Moves the agent towards the target of the action. /// </summary> /// <returns><c>true</c>, if agent is at the target, <c>false</c> otherwise.</returns> public abstract bool MoveAgent(GoapAction.WithContext nextAction);
/// <summary> /// About to do the next action. /// </summary> public abstract void AboutToDoAction(GoapAction.WithContext action);
/// <summary> /// One of the actions caused the plan to abort. /// </summary> /// <param name="aborter">The action that failed the plan.</param> public abstract void PlanAborted(GoapAction.WithContext aborter);
public static string PrettyPrint(GoapAction.WithContext action) { var s = new StringBuilder(); return(s.Append(action.actionData.name).Append('@').Append((action.target as Component).name).ToString()); }