Also:
expecting EOF, found '}'.
#pragma strict
var rotationSpeed = 100;
function Update ()
{
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
static Rigidbody.AddRelativeForce (Vector3.back * rotation);
}
Without the 'static' on the second to last line it would give me an error telling me i cannot use non-static variables with static variables.
↧