A
Size: a a a
A
T_
А
СЛ
А
А
ЕГ
ЕГ

MK
U
СЛ
СЛ
T_
T_
СЛ
СЛ
Vector3 mousePos = Input.mousePosition;
float kefAngel = ((Screen.width - mousePos.x) / Screen.width);
kefAngel = kefAngel < 0 ? kefAngel * 2 : kefAngel;
kefAngel = Mathf.Clamp(kefAngel, -1, 1); // Normalize
xRotate = mousePos.y * Sensivity;
xRotate = Mathf.Clamp(xRotate, YMinLimit, YMaxLimit);
yRotate = 360 * kefAngel * Sensivity;
transform.rotation = Quaternion.Euler(0, yRotate, 0) * Time.deltaTime;
mainCamera.rotation = Quaternion.Euler(-xRotate, yRotate, 0) * Time.deltaTime;
СЛ
T_
T_
СЛ