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 StopCameraZoom() { RotateAndZoomManager.StopCameraZoom(); }