예제 #1
0
 public GamePaused(GameRunning aCurrentGame)
 {
     if (Score.GetInstance().TrueVictory())
     {
         GalagaBus.GetBus().RegisterEvent(
             GameEventFactory <object> .CreateGameEventForAllProcessors(
                 GameEventType.GameStateEvent,
                 this,
                 "CHANGE_STATE",
                 "GAME_OVER", ""));;
     }
     currentGame    = aCurrentGame;
     maxMenuButtons = menuButtons.Length;
     buttonSelectImage.Shape.Rotate(0.5f * (float)Math.PI);
 }
예제 #2
0
 public GameOver(GameRunning aCurrentGame)
 {
     maxMenuButtons = menuButtons.Length;
     score          = Score.GetInstance().GetScore();
 }