Hi, I am creating a fairly simple 2D Platformer game and I was wondering if each instance of a deadly
obstacle (i.e. bomb/mine) should have a script with the OnTriggerEnter2D method checking if what it collides with has the tag “Player” or if my player should have a script with the OnTriggerEnter2D method checking if it collides with something with the tag “Obstacle”. Either way, I want to have the obstacle be destroyed and the player to die. Most of the obstacles will be floating (so not colliding with environment) and only need to worry about player collisions. Currently, I have scripts on all the obstacles that check for player collisions and it works but I was wondering if it was better performance-wise if the player did the collision checks, especially when dozens of obstacles are in the scene.
Hopefully what I am asking makes sense. Thank you in advance!