public void Clean() { AStar.Cleanup(); AStar = null; Map = null; Storage = null; Goal = null; }
public void Clean() { AStar.Cleanup(); AStar = null; //mapPlanner->Cleanup(); Map = null; //storage->Cleanup(); Storage = null; //goalPlanner->Cleanup(); Goal = null; }
public GOAPManager(Agent ai) { Owner = ai; Map = new AStarGOAPMap(); //Initialise the AStar Planner //Map.Initialise(Owner); //Map.BuildActionsEffectsTable();//Build the action effects table Storage = new AStarStorage(); Goal = new AStarGOAPGoal(); AStar = new AStarEngine(); //AStar.Setup(Goal,Storage,Map); }