Я делал игру на unity, И у меня возникла ошибка invalid expression term. Вот код, что делать?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class script : MonoBehaviour
{
float xRot = 90f;
public float sensittive = 500f;
// Start is called before the first frame update
void MouseMove()
{
xRot += Input.GetAxis("Mouse X") * sensittive * Time.deltatime;
xRot = mathf.clamp(xRot, 20f, 160f,);
transform.rotation = Quaternion.Euler(0f, xRor, 0f);
}
// Update is called once per frame
void Update()
{
MouseMove();
}
}