Exemplo n.º 1
0
    public void MoveBlock(string direction)
    {
        if (activeBlock != null)
        {
            if (direction == "left")
            {
                activeTetris.SetInput(Vector3.left);
            }

            if (direction == "right")
            {
                activeTetris.SetInput(Vector3.right);
            }

            if (direction == "forward")
            {
                activeTetris.SetInput(Vector3.forward);
            }

            if (direction == "back")
            {
                activeTetris.SetInput(Vector3.back);
            }
        }
    }