Could someone good with Unity Javascript take a peek at this script and let me know if I am missing any brackets or other syntax. The errors Im getting in MonoDevelop are:
Expecting ( Found Fixed Update, ; expected at the end.
Unexpected token if
Unexpected token var
Expected EOF found }
/Arrow Turn Function
function FixedUpdate(){
if (Input.GetAxis("Turn")){
var rotation : float = (Input.GetAxis("Turn")) * rotationSpeed * rotationSensativity;
rotation = rotation + transform.eulerAngles.y;
transform.localRotation = Quaternion.AngleAxis ( rotation, Vector3.up);
}