I have two gameobjects which both have rigidbody2ds and boxcollider2ds set as triggers. Both also have a script which implements the OnTriggerEnter2D method. Now I want to destroy both gameobjects when they collide, but I want to do it in their respective scripts. But for some reason when the collision happens only one of them gets the callback, and even that seems a bit random. The Destroy methods documentation says that the actual destruction happens only after the next Update, so that should affect the collision handling, but somehow it does.
How have you handled this situation?