using UnityEngine; using System.Collections; public class MyController : MonoBehaviour { ; ; ; private CharacterMotor motor; private float dist;//distance to ground // Use this for initialization void Start () { motor = GetComponent<CharacterMotor>(…