public override void Exit() { NightEventInfo nei = new NightEventInfo { }; EventHandeler.Current.FireEvent(EventHandeler.EVENT_TYPE.SwapToNight, nei); }
/// <summary> /// Triggers <see cref="DayEventInfo"/> and <see cref="NightEventInfo"/> depending on the value of <see cref="isDay"/> /// </summary> private void SwapValues() { if (isDay) { //lighting.intensity = dayIntensity; //lighting.color = dayColor; DayEventInfo dei = new DayEventInfo { }; EventHandeler.Current.FireEvent(EventHandeler.EVENT_TYPE.SwapToDay, dei); } else { //lighting.intensity = nightIntensity; //lighting.color = nightColor; NightEventInfo nei = new NightEventInfo { }; EventHandeler.Current.FireEvent(EventHandeler.EVENT_TYPE.SwapToNight, nei); } }