Colliding on top

How to create a condition of an object colliding with another above, in the style Mario World?

i don´t know oif is the best way… but i just put 2 colliders, one big on top, and one flat (or a plane) down