C
C#11mo ago
BananaCruz

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
TheRanger11mo ago
C# is case sensitive the T in trigger in OntriggerEnter2D is suppose to be capital
ThatDaniel
ThatDaniel11mo 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)
BananaCruz
BananaCruzOP11mo ago
Thanks :>
TheRanger
TheRanger11mo ago
yeah try installing this $unitytools
MODiX
MODiX11mo 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
MODiX11mo ago
Sorry @vl4do your message contained blocked content and has been removed!
Want results from more Discord servers?
Add your server