/// <summary> /// When the customer queue is done! /// </summary> public void FinishDay() { DayRecord theDay = new DayRecord(); float timeToFinishCustomers = Time.time - TimeDayStarted; theDay.UnpaidOvertimeSeconds = Mathf.Clamp(timeToFinishCustomers - DayLengthSeconds, 0, 5000); theDay.customers = DaysVisits; AllDays.Add(theDay); }
public static Status Map(DayRecord record, TimeSpan stash) { return(new Status(DayMapper.Map(record), stash)); }