private IEnumerator MoveSequence() { while (positionIndex < points.Length - 1) { positionIndex++; transform.LookAt(points[positionIndex].position); yield return(StartCoroutine(Move(points[positionIndex]))); } //Destroy(this.gameObject); carManager.EnqueueCar(this.gameObject); StopCoroutine(moveSequence); }