Unity2D Specific Collider Detection?

Hi Unity!

I have been using the 2D tools a lot recently and one thing that I have noticed is a Collider.bounds.intersects is missing from the 2D Collider.

This is causing me the issue of not being able to find a way to detect specific collisions for say my Enemy Colliding with Enemy and Enemy colliding with Player.

I currently use

void OnTriggerEnter2D(Collider2D collider)
{
}

but I can’t think of a way to specify with the Enemy Collider with a player.
I would normally do this in 3D with bounds.intersects and all would be fine but does anyone have any solutions for this?

Thanks

If I understand your problem, it seems like tags would work for what you want. For example:

void OnTriggerEnter2D(Collider2D collider){
	if (collider.gameObject.tag == "Enemy"){
		//execute code
	}
}

Am I just over-simplifying the problem?