Im making an FPS in unity. this is the movement code in javascript
for some reason it keeps giving me this error even tho I put the semi colon there Assets/Scripts/Movement.js(8,120): UCE0001: ';' expected. Insert a semicolon at the end. its really annoying I hope someone can help me
pragma strict
var playerAcceleration : float = 500;
var cameraObject : GameObject;
function Update ()
{
transform.rotation = Quaternion.Euler(0, cameraObject.GetComponent(MouseLook).CurrentYRotation,0);
rigidbody.AddRelativeForce(Input.GetAxis("Horizontal")playerAcceleration * Time.deltaTime,0,I)Input.GetAxis("Vertical")playerAcceleration * Time.deltaTime;
}