private MapTile GetTileInfo(Vector3Int tile) { var tileIndex = this.CurrGridMap.GetCellItem(tile.X, tile.Y, tile.Z); var tileName = this.CurrGridMap.MeshLibrary.GetItemName(tileIndex); return(TileDict.GetTile(tileName)); }
public MapTile GetMapTile(int x, int y, int z) { var tileIndex = this.GetCellItem(x, y, z); if (tileIndex == -1) { return(null); } return(TileDict.GetTile(this.MeshLibrary.GetItemName(tileIndex))); }