Hello there, I am pretty new to development and I’m attempting to make a 2D platformer for practice. I have gems in my game that trigger code to load the next scene when all of them are collected, and Obstacle objects with the name “KillPlayer” which are supposed to reload the current scene if they collide with my Player object.
It seems like the code for the gems and obstacles are interacting with each other. (like the obstacle is triggering the gem script.) I feel like this has something to do with the colliders that I don’t quite understand yet.
Also I want to mention that my Player object is made up of two colliders. I feel like that might be part of the issue.
Here is the link to my project in GitHub.
The project folder is Titled 2D Movement and animation.
My issue happens on all of my scenes, but the important one is the scene Titled LevelTest. this is the only one that has instances of the Gems I was talking about.