private void UpdateRotation() { // Check This character able to rotate if (fsmPlyer.IsAbleToRotate() == false) { return; } float fHorizontalRotation = Input.GetAxis("Mouse X") * mouseSensitivity; curRatationRadian.y += fHorizontalRotation * turnSpeed * Time.fixedDeltaTime; transform.rotation = Quaternion.Euler (0.0f , transform.rotation.y + curRatationRadian.y , 0.0f); }