Пример #1
0
    public override void Exit()
    {
        NightEventInfo nei = new NightEventInfo {
        };

        EventHandeler.Current.FireEvent(EventHandeler.EVENT_TYPE.SwapToNight, nei);
    }
Пример #2
0
    /// <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);
        }
    }