Im trying to set the Min and max rotation for my camera, this my attempt.
void Update() {
//X Rotation Min and Max
if (transform.eulerAngles.x >= -15){
transform.eulerAngles.x = -15;
}
if (transform.eulerAngles.x <= -60){
transform.eulerAngles.x = -60;
}
and this is were the rotation is happening
_currentCameraRotation.x += changeInRotationX * settings.rotation.cameraRotationRate.x * Time.deltaTime;