Esempio n. 1
0
    public void Initialize()
    {
        var gameBoard = _context.CreateGameBoard().gameBoard;

        for (int row = 0; row < gameBoard.rows; row++)
        {
            for (int column = 0; column < gameBoard.columns; column++)
            {
                if (Random.value > 0.91f)
                {
                    _context.CreateBlocker(column, row);
                }
                else
                {
                    _context.CreateRandomPiece(column, row);
                }
            }
        }
    }