Setting up collider sensor to test if user enter from a single direction

The easier solution will be creating two colliders. the first collider sense the player and tell the second collider the direction is sensed. collider

the first collider code:

for second collider