Ejemplo n.º 1
0
        public void MoveToScreen(GameScreenID id)
        {
            nextScreen = id;

            if (activeScreen != null)
            {
                screens[activeScreen].MoveOut();
            }
            else
            {
                OnGameScreenNotification(new GameScreen.TransitionCompletedEventArgs());
            }
        }
Ejemplo n.º 2
0
 private void OnGameScreenNotification(GameScreen.TransitionCompletedEventArgs eventArgs)
 {
     if (nextScreen == null)
     {
         return;
     }
     activeScreen = nextScreen;
     if (activeScreen != null)
     {
         screens[activeScreen].MoveIn();
     }
     nextScreen = null;
 }