Пример #1
0
 public bool Equals(CalenderDate dt2)
 {
     return(year == dt2.year &&
            month == dt2.month &&
            day == dt2.day &&
            hour == dt2.hour &&
            minute == dt2.minute &&
            second == dt2.second);
 }
Пример #2
0
        protected override void Awake()
        {
            base.Awake();

            if (!isDuplicate)
            {
                date = new CalenderDate(startingHour);
                date.AddSeconds(Time.realtimeSinceStartup);
            }
        }
Пример #3
0
 public DatedEvent(CalenderDate date, Action <DatedEvent> onEvent)
 {
     Date     = date;
     _onEvent = onEvent;
 }