コード例 #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();
        }