public void Stop() { navMeshAgent.Stop(); if (checkDestination != null) { StopCoroutine(checkDestination); checkDestination = null; } }