MoveDirection Check Problem

Its My Start in unity 3d so can any one tell me how can i check for the move direction then inverse it?

Rigidbodies have a velocity field -

transform.rigidbody.velocity

And the inverse of that is -transform.rigidbody.velocity

And if you’re storing the velocity yourself then it’s velocity = -velocity