Ejecutar un código solo una vez cuando dos de los mismos gameObjects chocan
OnCollisionEnter2D(Collision2D other)
{
if(other.GetInstanceID() > GetInstanceID())
{
whatever you want to run
}
}
Tense Thrush