So I’m having the problem that three BoxColliders2D overlap.
I want to call the OnMouseDown function from the middle collider, but another one is in front of this one.
changing the z-value isn’t an option, because I also do need the OnMouseDrag from the upper collider.
The middle collider isn’t always the same object with the same script. Or else I would just do a distance check, get the script and call “OnMouseDown”.
The collider all the way in the back can be totally ignored.
So long story short: how to play the OnMouseDown, while another collider is in the way?