예제 #1
0
 public void SetNeighbour(NeighbourDirection direction, TerrainTile tile)
 {
     Neighbours[(int)direction] = tile;
     tile.Neighbours[(int)direction.Opposite()] = this;
 }
예제 #2
0
 public void SetNeighbour(NeighbourDirection direction, Node node)
 {
     Neighbours[(int)direction] = node;
     node.Neighbours[(int)direction.Opposite()] = this;
 }