Add an update hook for the player.