public void CallNextPatient() { currentPatient = PatientManager.GetNextWaiting(); PatientManager.RemovePatientFromWaiting(currentPatient); currentPatient.state = Patient.State.inAppointment; state = State.working; if(WaypointManager.IsClinicSeat()) { currentPatient.SetWaypoint(WaypointManager.GetClinicWaypoint(),currentPatient.conditionTime + 1); } else { currentPatient.SetWaypoint(WaypointManager.GetPracticeWaypoint(),currentPatient.conditionTime + 1); currentPatient.Speak ("No Clinic Seating..."); // needs random messaging system. currentPatient.patientSatisfaction -= 5; } timeToStayAtWaypoint = currentPatient.conditionTime + cooldownTime; timeToNextPatient = currentPatient.conditionTime + cooldownTime; }