One way collider

Is there a way to let a collider collide from one way? I’m planning to make something like doodle jump (https://play.google.com/store/apps/details?id=com.realarcade.DOJ&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5yZWFsYXJjYWRlLkRPSiJd)

Always search google before posting an answer, check this link out.