//правка координаты X камеры) if(transform.localEulerAngles.x >= 80 && transform.localEulerAngles.x < 295){ if(transform.localEulerAngles.x < 180){ transform.localEulerAngles.x = 80.9; }else{ transform.localEulerAngles.x = 295.1; } }