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); }
private static void OnSeasonStarted(Event e) { SeasonTransitionEvent event2 = e as SeasonTransitionEvent; if (event2 != null) { SetUpHolidayManager(event2.CurrentSeason, true); } }
protected static void OnSeasonChanged(Event e) { SeasonTransitionEvent seasonEvent = e as SeasonTransitionEvent; if (seasonEvent == null) { return; } ApplySettings(); }