Get facing up hill or down

I have the angle of what I am standing on, and the direction I am moving. How would I calculate if my character is facing up or down hill for animation use?

just cast a ray forward from the feet for a distance of 1 meter, if you run into terrain your facing it so going uphill,
if you hit no terrain your not?

alternately you can use the terrains normal or you can use the angle of rotation between transform.forward and the terrain.

if the vector3.angle(terrain, player.transform.forward) is greater than 90 your going downhill, if its less your going up

etc etc.

theres a few ways