To adapt to a situation or find your place.
To deal with a situation as it develops, rather than according to a plan.