Is there a way to deplete hunger based on character movement instead of a timer?

How do i deplete hunger based on player’s movement? Instead of a timer

How do you move the player? Assuming the most basic scenario:

Hook it up to the movement script.