예제 #1
0
        protected static void OnSeasonChanged(Event e)
        {
            SeasonTransitionEvent seasonEvent = e as SeasonTransitionEvent;

            if (seasonEvent == null)
            {
                return;
            }

            switch (seasonEvent.PreviousSeason)
            {
            case Season.Spring:
                break;

            case Season.Summer:
                break;

            case Season.Fall:
                break;

            case Season.Winter:
                break;
            }

            ApplySeason(seasonEvent.CurrentSeason);
        }
예제 #2
0
        private static void OnSeasonStarted(Event e)
        {
            SeasonTransitionEvent event2 = e as SeasonTransitionEvent;

            if (event2 != null)
            {
                SetUpHolidayManager(event2.CurrentSeason, true);
            }
        }
예제 #3
0
        protected static void OnSeasonChanged(Event e)
        {
            SeasonTransitionEvent seasonEvent = e as SeasonTransitionEvent;

            if (seasonEvent == null)
            {
                return;
            }

            ApplySettings();
        }