public static bool IsAboveNavMeshSurface(this NavMeshAgent agent)
        {
            Vector3 navPosition;

            return(agent.IsAboveNavMeshSurface(out navPosition));
        }
        public static bool IsAboveNavMeshSurface(this NavMeshAgent agent, Collider collider, out Vector3 navPosition)
        {
            RaycastHit rayHit;

            return(agent.IsAboveNavMeshSurface(collider, out navPosition, out rayHit));
        }
        public static bool IsAboveNavMeshSurface(this NavMeshAgent agent, out Vector3 navPosition, out RaycastHit rayHit)
        {
            var collider = agent.GetComponent <Collider>();

            return(agent.IsAboveNavMeshSurface(collider, out navPosition, out rayHit));
        }