This is the UmLet for the second version of the Movement script.
_spd is the variable controlling the speed of movement
_hz is used to get the movement for the forward – backward axis
rb is connecting the RigidBody to the code, for a future jumping function.
_rFacing and _lFacing are used when switching the direction the player is facing
_sw is the variable used to manage the switching of direction
The script does fulfill the scope set out, allowing the player to move on the forward – backward axis and also changing the direction correctly.