public static Path ShortestPath(NodeNetCreator net, Vector3 startPos, Vector3 endPos) { Node start = net.GetClosestNode(startPos); Node end = net.GetClosestNode(endPos); return(ShortestPath(net, start, end)); }