public static bool ReachedDestination(this NavMeshAgent nmAgent, float distanceTolerance) { return(nmAgent.GetRemainingDistance() < distanceTolerance); }