public extern void Resume();
[MethodImpl(MethodImplOptions.InternalCall)]
/// <summary> /// Allow pathfinding to resume. /// </summary> public override void OnStart() { navMeshAgent.speed = speed.Value; navMeshAgent.angularSpeed = angularSpeed.Value; #if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 || UNITY_5_5 navMeshAgent.Resume(); #else navMeshAgent.isStopped = false; #endif SetDestination(Target()); }