IEnumerator WaitTimeBeforeDoneServing(float timeToWait, System.Action action) { yield return(new WaitForSeconds(timeToWait)); action(); customerList.CallingNextCustomer(); customerList.MoveCustomerUpInQueue(customerList.CurrentCustomer); }
IEnumerator WaitTimeBeforeDoneServing(float timeToWait, System.Action action) { yield return(new WaitForSeconds(timeToWait)); action(); customerList.CallingNextCustomer(); customerList.MoveCustomerUpInQueue(customerList.CurrentCustomer); }