public ReturnedPath GetPath(Vector2D startNode, Vector2D endNode) { var indexStart = pathfinding.GetClosestNode(startNode); var indexEnd = pathfinding.GetClosestNode(endNode); var aStar = new AStarSearch(); var path = new ReturnedPath(); if (aStar.Search(pathfinding, indexStart, indexEnd)) path = aStar.GetPath(); return path; }
public PathMarker(ReturnedPath path) { Path = path; effect = EffectLoader.GetTrailMarkerEffect(); }