Expecting EOF found else??

i did find the same problem except it wasnt the exact same as mine…please help me `function Update ()
{
if(Input.GetButtonDown(“Vertical”))
walking = true;
walkAnimation.Play();

} else {

if(Input.GetButtonUp(“Vertical”))
walking = false;
walkAnimation.Stop();
}`

Just by reading your title i can say that you have more closing brackets than opening brackets. Such errors can easily avoided when you use a proper indention style.

You don’t have an opening bracket after your if statement but you have a closing which doesn’t close the if but the Update function. That means your else keyword is outside the Update function.