collider

hi, i am making an endless jumper, is there a way to set so that my OnCollisionEnter2d (see below)only gets affected when my player comes from above, and not from beneath ? coz I’m using onewaycollider but my platforms fall 1 second after i have jumped through them, not when i land on them, HELP

void OnCollisionEnter (collision2d coll)
if (coll.gameobject.comparetag (“Player”))
invoke (“Fall”, falldelay)

void fall ()
rb2d.iskinematic = false

Don’t post the same thing again, but, you can chexk the players velocitys y magnitude by playerobject.getcomponent(rigidbody).velocity.magnitude.y, and put an if statement in oncollision enter with an argument of "magnitudeimnotgonnawritethewholethingagain < 0