Problem with a script in a 2D game

Hi, we’re trying to make a 2D game, but we got a problem with bonus box like super mario’s one.
We tried to insert a invisible and trigger button under the box, but it didn’t work correctly (it works when the player stay on the box too).
If you have any idea, please help us.
Bye!

How about just putting t box collider on the object, then put a child object under that object with a trigger that is small at the bottom of the object.