Example #1
0
    // Apply rotation to UI and Mirror
    private void rotateHandler(object sender, EventArgs e)
    {
        RotateGesture rotation = (RotateGesture)sender;

        if (mirror)
        {
            mirror.transform.Rotate(0, 0, rotation.DeltaRotation);
        }
        else
        {
            print("No Mirror!");
        }
    }
Example #2
0
    // Apply rotation via the Rotation Gesture
    private void rotateHandler(object sender, EventArgs e)
    {
        RotateGesture rotation = (RotateGesture)sender;

        transform.Rotate(0, 0, rotation.DeltaRotation);
    }