// ------------------------------------------- /* * DayUpdated */ public void DayUpdated(FlatCalendar.TimeObj _time) { DateTime newDate = new DateTime(_time.year, _time.month, _time.day, 0, 0, 0, 0, System.DateTimeKind.Utc); UIEventController.Instance.DispatchUIEvent(EVENT_SCREENCALENDAR_SELECT_DAY, (long)DateConverter.DateTimeToTimeStamp(newDate)); Destroy(); }
public void eventsDiscovered(FlatCalendar.TimeObj time, List <FlatCalendar.EventObj> list) { Debug.Log("You have selected a day with: " + list.Count + "events"); for (int i = 0; i < list.Count; i++) { Debug.Log("Event: " + i + " ==> " + "Name: " + list[i].name + " Description: " + list[i].description); } }
void setCurrentTime(FlatCalendar.TimeObj obj) { obj.year = System.DateTime.Now.Year; obj.month = System.DateTime.Now.Month; obj.day = System.DateTime.Now.Day; obj.dayOfWeek = System.DateTime.Now.DayOfWeek.ToString(); obj.totalDays = System.DateTime.DaysInMonth(obj.year, obj.month); obj.dayOffset = getIndexOfFirstSlotInMonth(obj.year, obj.month); }
public void backHome(FlatCalendar.TimeObj time) { Debug.Log("You have come back at home"); time.print(); }
public void monthUpdated(FlatCalendar.TimeObj time) { Debug.Log("Month has changed"); time.print(); }
public void dayUpdated(FlatCalendar.TimeObj time) { Debug.Log("Day has changed"); time.print(); }