Example #1
0
        private TileBase[][] CreteTileBaseGrid(InputImageParameters imagerParameters)
        {
            TileBase[][] gridOfInputTiles = null;
            gridOfInputTiles = MyCollectionExtension.CreateJaggedArray <TileBase[][]>(imagerParameters.Height, imagerParameters.Width);
            for (int row = 0; row < imagerParameters.Height; row++)
            {
                for (int col = 0; col < imagerParameters.Width; col++)
                {
                    gridOfInputTiles[row][col] = imagerParameters.StackOftiles.Dequeue().Tile;
                }
            }

            return(gridOfInputTiles);
        }
Example #2
0
        private TileBase[][] ReadInputTileMap()
        {
            InputImageParameters imagePerameters = new InputImageParameters(_inputTilemap);

            return(CreateTileBaseGrid(imagePerameters));
        }