public void SetTile(int x, int y, float height, OrthoDir dir, Tile tile) { FacingTileKey key = new FacingTileKey(); key.dir = dir; key.pos = new Vector3(x, height, y); facingTiles[key] = tile; }
public Tile TileAt(int x, int y, float height, OrthoDir dir) { FacingTileKey key = new FacingTileKey(); key.dir = dir; key.pos = new Vector3(x, height, y); if (facingTiles.ContainsKey(key)) { return(facingTiles[key]); } else { return(defaultFaceTile); } }