Assets/Scripts/DoorAnimation.cs(24,1): error CS1525: Unexpected symbol `}'

This is a very simple issue- I just have an extra curly bracket somewhere. I know this is an easy fix, I just can’t find where the curly bracket shouldn’t be. I’ve been looking for a while- I am probably looking right over it. Help is appreciated!

Side note- taking out a curly bracket gives me the error “Unexpected symbol- void”

Please use code tags when posting code.

You’ve got 3 curly brackets that shouldn’t be there.
2 which are positioned after closing the Start method, and one at the end.
Remove these 3 and it should be fine.

1 Like

Thanks, it worked great. And I’ll keep in mind the code tags.

Just as a side note, in most IDEs if you click a curly bracket and it will also highlight the matching closing curly. This should help you to find rogue brackets.

1 Like