コード例 #1
0
ファイル: Graph.cs プロジェクト: LucasVilleneuve/DieSchloss
 public FourDirectionGraph(Tilemap map, BoundsInt bounds)
 {
     this.map    = map;
     this.bounds = bounds;
 }
コード例 #2
0
ファイル: Graph.cs プロジェクト: LucasVilleneuve/DieSchloss
 /// <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;
 }