| | |
| | | private Dictionary<Component, TimeItem> timeItems = new Dictionary<Component, TimeItem>(); |
| | | private List<TimeItem> timeItemList = new List<TimeItem>(); |
| | | private int hourBuff = -1; |
| | | private int minuteBuff = -1; |
| | | public int dayBuff = -1; |
| | | public int monthBuff { get { return LocalSave.GetInt("month"); } private set { LocalSave.SetInt("month", value); } } |
| | | public int weekBuff { get { return LocalSave.GetInt("week"); } private set { LocalSave.SetInt("week", value); } } |
| | | public event Action OnDayEvent; |
| | | public event Action OnHourEvent; |
| | | public event Action OnMinuteEvent; |
| | | public event Action OnMonthAfterPlayerDataInitializeEvent; |
| | | public event Action OnWeekAfterPlayerDataInitializeEvent; |
| | | |
| | |
| | | } |
| | | hourBuff = TimeUtility.ServerNow.Hour; |
| | | } |
| | | if (minuteBuff != TimeUtility.ServerNow.Minute) |
| | | { |
| | | if (OnMinuteEvent != null) |
| | | { |
| | | OnMinuteEvent(); |
| | | } |
| | | minuteBuff = TimeUtility.ServerNow.Minute; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DebugEx.Log(e.StackTrace); |
| | | Debug.Log(e.StackTrace); |
| | | } |
| | | for (int i = 0; i < syntonyList.Count; i++) |
| | | { |
| | |
| | | { |
| | | endTime = TimeUtility.ServerNow.AddSeconds(_totalTime); |
| | | callback = _func; |
| | | DebugEx.LogFormat("{0}{1}", type, endTime); |
| | | Debug.LogFormat("{0}{1}", type, endTime); |
| | | } |
| | | } |
| | | |