public void SetNeighbour(NeighbourDirection direction, TerrainTile tile) { Neighbours[(int)direction] = tile; tile.Neighbours[(int)direction.Opposite()] = this; }
public void SetNeighbour(NeighbourDirection direction, Node node) { Neighbours[(int)direction] = node; node.Neighbours[(int)direction.Opposite()] = this; }