public FourDirectionGraph(Tilemap map, BoundsInt bounds) { this.map = map; this.bounds = bounds; }
/// <summary> /// Creates a new FourDirectionalGraph using the tilemap's cell bounds /// as the graph bounds. If the tilemap does not have tiles on its /// intended boundary then the graph bounds could be smaller than it /// should be and you should use the other constructor to specify the /// graph bounds. /// </summary> public FourDirectionGraph(Tilemap map) { this.map = map; this.bounds = map.cellBounds; }