Ejemplo n.º 1
0
    public override void Exit()
    {
        DayEventInfo dei = new DayEventInfo {
        };

        EventHandeler.Current.FireEvent(EventHandeler.EVENT_TYPE.SwapToDay, dei);
    }
Ejemplo n.º 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);
        }
    }