public void ChangeState(AbstractLightState state)
    {
        if (State != null)
            State.OnExit();

        State = state;

        if (State != null)
            State.OnEnter();
    }
Esempio n. 2
0
    public void ChangeState(AbstractLightState state)
    {
        if (State != null)
        {
            State.OnExit();
        }

        State = state;

        if (State != null)
        {
            State.OnEnter();
        }
    }