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