public void UpdateDestination() { if (_target) { navMeshAgent.SetDestination(_target.ClosestPoint(transform.position)); } }