public static void RequestPathfind(PathfindPriority priority, PathfindComponent pathfinder, Tile startTile, Tile endTile) { pathfindQueue.Enqueue(new PathfindTask(pathfinder, startTile, endTile), (int)priority); }
public PathfindTask(PathfindComponent pathfindComponent, Tile startTile, Tile endTile) { this.pathfindComponent = pathfindComponent; this.startTile = startTile; this.endTile = endTile; }