#pragma strict
var lookSensitivity : float = 5;
var yRotation : float;
var xRotation : float;
var Current XRotation : float;
var Current YRotation : float;
var yRotationV : float;
var xRotationV : float;
var lookSmoothness : float = 0.1;
function Update ()
{
yRotation += Input.GetAxis("Mouse X") * looksensitivity;
xRotation += Input.GetAxis("Mouse Y") * looksensitivity;
transform.rotation = Quaternion.Euler(xRotation, yRotation, 0);
}
i got 2 problems first is UCE0001 expected.insert a semicolon at the end. and
BCE0044 expected EOF,found’XRotation’
im a complete beginner in programming can you guys please help me solve this?