Může mi někdo pomoct z tímhle scriptem?
Translation: Can anyone please help me with this code?
The compiler is telling you what’s wrong there and it’s highlighted. The “OnCollisionEnter2D” doesn’t have a method body enclosed with “{ }” braces (it only has a semi-colon). The same as your “Update” function.
This isn’t 2D related, it’s basic C# syntax.
NOTE: You duplicated this post here .
