Ejemplo n.º 1
0
    IEnumerator StartNewAppointment()
    {
        Appointment newAppointment = appointments.Pop();

        yield return(cancelRoutine);

        cancelRoutine = null;

        activeAppointment = newAppointment;
        yield return(StartCoroutine(activeAppointment.AttendAppointment(this)));
    }