Help needed making fake 3D collision in a beat em up style 2D project

Hello! Me and a friend of mine are working on a castle crashers/scott pilgrim style beat em up game. These games have a sort of “fake” 3d collision, where player characters can move and jump on geometry properly, but still have flat 2D sprite art.

We are currently stuck trying to figure out how to achieve this. The way we have it currently is that there is a box collider around the player characters feet, and an edge collider acting as the level collision. The problem with this is that this makes it impossible to do things like jump onto a higher platform. We want to know if there is any way of “drawing” where the player can and cannot walk on, as seen in the attached image.

Here is the script for our player movement: using System.Collections;using System.Collections.Generic;using UnityEngine; - Pastebin.com

Any help will be much appreciated, thank you!

I have an idea. You could keep the box collider but when you press space bar it temporarily disabled’s that specific collider.

if(spaceBarPressed)
}
box collider set to disabled
player jumps
}