I keep getting an ‘unexpected symbol “{”’ error when I run debug on a script designed to make my player object move up and down with ‘e’ and ‘q’. I’ve checked whitespace, but the error keeps reappearing. I also really need this answer quickly as this script is keeping me from testing all the other scripts in my project.
It is quite weird since it shouldn’t happen, I mean the code seems to be ok. Have you tried to delete it and do it again? Sometimes just making a new script and copying the very same thing solves this kind of weird bugs. Has happened to me a few times.
I tried that, but I’m still getting the same errors. I even tried deleting the brackets altogether, but the compiler disregarded the Update class, which makes sense.