I am beginner in doing scripts and i cant figure how to do those ERRORS
im getting:
------------------------------------------------------------------------------------------------------------------------------------------(14,9)BCCE0044: expecting }, found ‘else’.-----------------------------------------------------------------------------------------(18,9)BCCE0044: expecting EOF, found ‘else’.------------------------------------------------------------------------------------
#pragma strict
var moveUp : KeyCode;
var moveDown : KeyCode;
var speed : float = 10;
function Update ()
{
if (Input.GetKey(moveUp));
{
}
else if (Input.GetKey(moveDown));
{
}
else
{
}
}