Code
Create a new scene
Create a new GameObject called
Goap, add theGoapRunnerBehaviourto it.

Create a class called
WanderTargetthat extendsTargetKeyBase.
Create a class called
IsWanderingthat extendsWorldKeyBase.
Create a class called
GoapSetConfigFactorythat extendsGoapSetConfigFactoryBaseand override theCreatemethod.
Add the
GoapSetConfigFactoryto theGoapGameObject. Make sure to add theGoapSetConfigFactoryto theGoapRunnerBehaviour's factories property.

Create a script called
GoapSetBinder. This script will assign aGoapSetto theAgent.
Create a sphere
GameObjectcalledAgent. Add theAgentBehaviour,AgentMoveBehaviour,AgentBrainandGoapSetBinderto theGameObject.

Run the scene. The agent should move around randomly.
Last updated