private void OnTouchMoving(Object sender, MotionEventArgs eventArgs) { float horizontalRotation = horizontalRotatingSpeed * eventArgs.motion.x; transform.Rotate(0, horizontalRotation, 0, Space.World); float verticalRotation = verticalRotatingSpeed * -eventArgs.motion.y; m_currentVerticalRotation += verticalRotation; Vector3 t_newEuler = transform.localEulerAngles; t_newEuler.x = AngleMath.ClampAngle(m_currentVerticalRotation, minVerticalRotation, maxVerticalRotation); transform.localEulerAngles = t_newEuler; }