C
C#12mo 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
TheRanger12mo ago
C# is case sensitive the T in trigger in OntriggerEnter2D is suppose to be capital
ThatDaniel
ThatDaniel12mo 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
BananaCruzOP12mo ago
Thanks :>
TheRanger
TheRanger12mo ago
yeah try installing this $unitytools
MODiX
MODiX12mo 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
MODiX12mo ago
Sorry @vl4do your message contained blocked content and has been removed!

Did you find this page helpful?