private void ObjectiveChanged(object sender, System.EventArgs e) { if (camSwitch.CamStyle == CameraStyle.Auto) { if (objectiveCanComplete) { autoCam.ReturnToDefaultValues(); } } }
private void OnStyleChanged() { switch (CamStyle) { case CameraStyle.Manual: tpCam.ResetCamera(); autoCam.ResetContainer(false); tpCam.lockCamera = false; autoCam.CanRotate = false; break; case CameraStyle.Auto: tpCam.ResetCamera(); autoCam.ReturnToDefaultValues(); autoCam.ResetContainer(true); tpCam.lockCamera = true; autoCam.CanRotate = true; break; default: break; } }