using UnityEngine; //this class holds movement functions for a rigidbody character such as player, enemy, npc.. //you can then call these functions from another script, in order to move the character [RequireComponent(typeof(Rigidbody))] public class…