示例#1
0
        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));
        }
示例#2
0
        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)));
        }