IEnumerator NextStepCoroutine() { print("Next Step Coroutine to: " + Steps[nextFloorStepIndex].name); transform.position = Steps[nextFloorStepIndex].transform.position; nextFloorStepIndex++; if (nextFloorStepIndex >= Steps.Count) { stepsController.StopRunning(); } yield return(new WaitForSeconds(1)); }