I currently have an error (probably incredibly easy to solve). It’s embarrassing.
Unity is throwing me wild error messages in places where there weren’t any before.
In MVS it tells me that a } essentially ends the whole file, even though it is intended for the Start() function. Since there is no other } there, I don’t know why he sees it that way…
At first I thought that I had forgotten a bracket somewhere, but for all the others they are recognized correctly.
The last K} after Update() probably doesn’t have an associated {…
I’m adding the file…
Please help me, I’m going crazy…
You’re using keywords that aren’t permitted in the method like public and readonly and it’s confusing the compiler. Your IDE should have highlighted this with a red squiggly line. I checked and it’s being highlighted by Visual Studio.
Thank you @Ryiah
Now I see that the ‘public’ causes the error.
Since Visual Studio shows ‘no problems found’ and the bracket is not marked in red, I assumed it was a missing bracket or something. No wonder I didn’t find anything like that.
The public text slipped into the Start() function for me, although
it should actually be above it.
Well, I moved both lines and now it works.
Thanks again
@MevMay
I added the image to show that Visual Studio didn’t mark anything incorrectly in the section in question.
I may have expressed this incorrectly, sorry.