private void Update() { if (Input.GetKeyDown(KeyCode.Q)) { RotateAndZoomManager.StartCameraZoom(center, 2, 10); RotateAndZoomManager.StartCameraAroundCenter(center); } if (Input.GetKeyDown(KeyCode.W)) { RotateAndZoomManager.StopCameraAroundCenter(); RotateAndZoomManager.StopCameraZoom(); } }
/// <summary> /// 关闭相机围绕某个中心旋转 /// </summary> public static void StopCameraAroundCenter() { RotateAndZoomManager.StopCameraAroundCenter(); }