OnCollisionEnter2D(Collision2D other) { if(other.GetInstanceID() > GetInstanceID()) { whatever you want to run } }