// 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!"); } }
// Apply rotation via the Rotation Gesture private void rotateHandler(object sender, EventArgs e) { RotateGesture rotation = (RotateGesture)sender; transform.Rotate(0, 0, rotation.DeltaRotation); }