public void planFound(HashSet <KeyValuePair <string, object> > goal, Queue <GoapAction> actions) { // Yay we found a plan for our goal if (goalDebug) { Debug.Log("<color=green>Plan found</color> " + GoapAgent.prettyPrint(actions)); } }
public void planAborted(GoapAction aborter) { // An action bailed out of the plan. State has been reset to plan again. // Take note of what happened and make sure if you run the same goal again // that it can succeed. if (goalDebug) { Debug.Log("<color=red>Plan Aborted</color> " + GoapAgent.prettyPrint(aborter)); } }