Exemple #1
0
    public static void fitPiece(BlockGroup blockGroup, GameField field)
    {
        bool goDown()
        {
            if (blockControl.blk_cnj_foreach(blockControl.blk_solo_checkDown, blockGroup.GetBlocks(), 0))
            {
                blockControl.blk_cnj_foreach(blockControl.blk_solo_moveDown, blockGroup.GetBlocks(), 0);
                blockGroup.SetLocation(new Vector2Int(blockGroup.GetLocation().x, -1));
                return(goDown());
            }
            return(true);
        }

        goDown();
    }