示例#1
0
        public void GenerateTiles(MazeTile[] tileArray)
        {
            for (byte z = 0; z < maze.BoardSize; z++)
            {
                for (byte x = 0; x < maze.BoardSize; x++)
                {
                    var tile = CreateTile(z, x);

                    if (IsCorner(z, x, out var upDownDirection, out var leftRightDirection))
                    {
                        TileGenerator.GenerateCornerWalls(tile, upDownDirection, leftRightDirection);
                    }