public override void _Draw()
    {
        if (_board == null)
        {
            return;
        }

        BoardUtils.DrawTetrisGrid(this, _board, _cellWidth);
    }
Exemple #2
0
    public override void _Draw()
    {
        if (_tetromino == null)
        {
            return;
        }
        var cellWidth = RectSize.x / _tetromino.Width;

        BoardUtils.DrawTetrisGrid(this, _tetromino, cellWidth);
    }