I tried creating a simple horizontal movement script. I get no errors. But when I run the game, the object does not move when I enter inputs. Here is the JavaScript script in quot marks. Sorry that it looks messy here.
"#pragma strict
public var paddleSpeed: int = 100;
function Update ()
{
if (Input.GetButton(“Horizontal”))
{
GetComponent.().AddForce(paddleSpeed, 0, 0);
}
}
"
What is wrong? The object has a Rigidbody already, by the way.