You seem to have two blocks but one is outside the Update. Either it all goes in the Update or you need to create a method to use the second part but I doubt you are after that since you are using local variables in the second part.
function Update ()
{
var moveHorizontal = Input.GetAxis("Horizontal");
var moveVertical = Input.GetAxis("Vertical");
var move:Vector3 = new Vector3(moveHorizontal, 0 , moveVertical);
rigidbody.AddForce(move);
}
If you still get the semi colon error, you may want to copy paste the script on notepad, remove the script from Unity, create a new one and paste. Sometimes Unity goes childish. If the error is different you need to tell.
Still doesn't work.
– paulius986What do you mean: -It doesn't work the way you expect? or -It throws the error still?
– perchikIf you still get the semi colon error, you may want to copy paste the script on notepad, remove the script from Unity, create a new one and paste. Sometimes Unity goes childish. If the error is different you need to tell.
– fafaseI don't work in javascript, but I don't think you need "new" in front of Vector3
– perchikOh actually the Vector3 is wrongly declared!! The new is not necessary but can be placed.
– fafase