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?
6 Replies
C# is case sensitive
the T in
trigger
in OntriggerEnter2D
is suppose to be capitalIf 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)
Thanks :>
yeah try installing this $unitytools
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.
Sorry @vl4do your message contained blocked content and has been removed!