#pragma strict
var rotationSpeed = (100);
function Update ()
{
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
(AddRelativeTorque)(Vector3.back * rotation);
}
↧