public List <Node> FindPath(PathFindingAgent agent, Transform goalObject) { Node start = WorldPositionToNode(agent.transform.position); Node goal = WorldPositionToNode(goalObject.position); return(_search.Search(start, goal, _pathFindingRules, agent)); }