- Home /
This question was
closed Jul 03, 2014 at 12:36 PM by
Josh Naylor for the following reason:
The question is answered, right answer was accepted
Question by
Empire4You · Jul 03, 2014 at 12:34 PM ·
erroruce0001
Assets/PlayerControl.js(3,21): UCE0001: ';' expected. Insert a semicolon at the end.
Why isnt it working, I can't add player movement in unity!!!1
#pragma strict
var moveUp : KeyCode
var moveDown : KeyCode
var speed : float = 10;
function Update ()
{
if (Input.GetKey(moveUp))
{
}
else if (Input.GetKey(moveDown))
{
}
else
{
}
}
Comment
Best Answer
Answer by Josh Naylor · Jul 03, 2014 at 12:36 PM
you are missing semi-colons after both your keycode declarations.
(3,21) means line 3, character 21.