Пример #1
0
 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));
     }
 }
Пример #2
0
 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));
     }
 }