예제 #1
0
        void animItems_onFadeOutFinish(object sender)
        {
            lock (controls)
                controls.Clear();

            currentState = nextState;
            nextState    = new MenuState();

            lock (controls)
            {
                for (int i = 0; i < currentState.items.Count; i++)
                {
                    controls.Add(currentState.items[i]);
                }
            }

            animItems.onFadeOutFinish -= new Animation.SceneAnimation.FadeEventHandler(animItems_onFadeOutFinish);

            animItems = new Animation.MainMenu.ItemsAnimation();
            animItems.Init(this);
            animItems.FadeIn();
        }
예제 #2
0
        void animItems_onFadeOutFinish(object sender)
        {
            lock (controls)
                controls.Clear();

            currentState = nextState;
            nextState = new MenuState();

            lock (controls)
            {
                for (int i = 0; i < currentState.items.Count; i++)
                {
                    controls.Add(currentState.items[i]);
                }
            }

            animItems.onFadeOutFinish -= new Animation.SceneAnimation.FadeEventHandler(animItems_onFadeOutFinish);

            animItems = new Animation.MainMenu.ItemsAnimation();
            animItems.Init(this);
            animItems.FadeIn();
        }