コード例 #1
0
    private void TurnTetromino()
    {
        int mode = activeTetromino.mode;

        int[,] newShape = activeTetromino.shapes[(mode + 1) % 4];
        if (!CheckCollision(activeAnchorX, activeAnchorY, newShape))
        {
            move.Play(0);
            activeTetromino.ChangeActiveShape();
        }
    }