So in this lesson the box collider on the enemy triggers an OnTriggerExit2D event when it is no longer intersecting the boundary of the ground’s collision box.
Do collisions always react this way? Only the edges count? I must have not realized that during all the previous lessons.
So this would not work if we did not have Composite Collider 2D on the Tilemap, correct?
Also, is there a way to specify which of the two colliders on the enemy are colliding? Or if we wanted to do that we would have to put them on child objects?