通过比例来控制鼠标的移动
float xPosPercent = Input.mousePosition.x / Screen.width;
float yPosPercent = Input.mousePosition.y / Screen.height;
float xAngle = -Mathf.Clamp(yPosPercent * maxRotateX, minRotateX, maxRotateX) + 15;
float yAngle = Mathf.Clamp(xPosPercent * maxRotateY, minRotateY, maxRotateY) - 60;
transform.eulerAngles = new Vector3(xAngle, yAngle, 0);