AI Stair Climb?

Heres the thing, I have this script attached to a game object “enemy”. The AI moves right until Raycast hits a collider tagged “Wall”, then turns around and moves left until Raycast hits collider tagged “Wall” then turns around and starts over. What I am having trouble with is…say the player places a “box” down in front of the short “Wall” and then as the enemy returns towards where the box was placed, instead of hitting the wall and turning it will climb up on the box and continue on it’s right path until another “Wall” is hit. How would I go about having the rigid body enabled game object “climb” onto the box, allowing it to now walk on the now roof of the previously “Wall”…Hope this makes sense.

There is “Player controller” script with something that helps with stair climbing, no mods or exact templates! This is soo nice… I’m gonna call it my precious… Bum-Dum-Bum-Dum, This is crapping awesome!