public class BetterMove : MonoBehaviour {
public int MoveSpeed;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Translate(Input.GetAxis("Horizontal") * moveSpeed
}
}
Hey! The error message has some useful info in it… like the LINE NUMBER and COLUMN of the error! Something like this…
Assets/Monkey/Banana/BetterMove.cs(29,71):
That would say on line 29 column 71 there was an error. ‘Unexpected’ errors are a little confusing because they usually mean something was missing BEFORE the position of the error. In your case you are missing parens (they always come in matching pairs!) and a semi-colon.