You could place a trigger at the front of the cave- that upon enter sends mecanim a trigger/bool to go into a crouching position as well as adjust their collider to fit in the space or switch out the collider with another- then on exiting the cave- trigger exit and back to normal