Code not recognized despite being identical to Rick's

Screenshot 2023-02-08 at 16.20.30
Screenshot 2023-02-08 at 16.16.09

Top is the code as I type it, which throws a bunch of syntax errors in Unity. Below is Rick’s code copied and pasted, which gets parsed correctly. What’s odder is that I retyped mine several times with the same result, but after pasting Rick’s magic code suddenly it worked when I typed it manually too, and I can only replicate the non functional code by ctrl+z’ing back to it. What happened here?

You have [ and ] instead of { and } - so, not identical…

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms