public void NextStep() { if (car == null) { car = Instantiate(carPrefab, startWaypoint.transform.position, Quaternion.identity); car.onFinishedPath += OnFinishedPath; car.nextStep = true; stepCoroutine = StartCoroutine(car.FollowPathStep(path)); } else { car.nextStep = true; } onNextStep = true; }