C
C#5mo ago
Cruz

Unity Snake Game Error

Hello, I am a beginner level Unity user. I wanted to make a "Snake Game" in my own way. The character moves and eats everything like in the photo. But the character passes over the food without hitting it. Where am I wrong?
No description
No description
6 Replies
TheRanger
TheRanger5mo ago
C# is case sensitive the T in trigger in OntriggerEnter2D is suppose to be capital
ThatDaniel
ThatDaniel5mo ago
If you configure your IDE for Unity you'll get red underlining for compile errors and it'd tell you if you are using a Unity magic function correctly (Like OntriggerEnter2D)
Cruz
Cruz5mo ago
Thanks :>
TheRanger
TheRanger5mo ago
yeah try installing this $unitytools
MODiX
MODiX5mo ago
Install & configure Visual Studio Tools for Unity
Connect Unity and Visual Studio and use Visual Studio Tools for Unity to support writing and debugging for cross-platform development.
MODiX
MODiX5mo ago
Sorry @vl4do your message contained blocked content and has been removed!
Want results from more Discord servers?
Add your server
More Posts