I have a CircleCollider2D and a BoxCollider2D on my character and when the character collides with a platform that has a trigger on it I want to check if it was the BoxCollider2D that hit.
I was trying this and getting an error:
void OnTriggerEnter2D(Collider2D col)
{
if (col.GetType() == BoxCollider2D) {
...