Beispiel #1
0
 static public void Update(GameTime gameTime, Game1 game)
 {
     if (game.gameState == Game1.GameState.running)
     {
         menuInGame.update(gameTime);
     }
     if (game.gameState == Game1.GameState.Options)
     {
         optionsMenu.Update(gameTime, game);
     }
     if (game.gameState == Game1.GameState.Menu)
     {
         menuPrincipal.update(gameTime, game);
     }
 }
Beispiel #2
0
 static public void Update(GameTime gameTime, Map map, Game1 game, ContentManager content, Camera2D cam, hud Interface)
 {
     if (game.gameState == Game1.GameState.Menu)
     {
         menuPrincipal.update(gameTime, game);
         return;
     }
     if (game.gameState == Game1.GameState.Paused)
     {
         menuInGame.update(gameTime, game, content);
         return;
     }
     if (game.gameState == Game1.GameState.Options)
     {
         optionsMenu.Update(gameTime, game);
         return;
     }
     if (game.gameState == Game1.GameState.CharacterChoose)
     {
         characterChoose.Update(gameTime, game, content);
         return;
     }
     if (game.gameState == Game1.GameState.MapChoose)
     {
         mapChooser.update(gameTime, game, map);
         return;
     }
     if (game.gameState == Game1.GameState.OpeningCutScene)
     {
         OpeningCutScene.Update(gameTime, game);
         return;
     }
     if (game.gameState == Game1.GameState.Win)
     {
         winMenu.update(gameTime, game, content, cam);
         return;
     }
     if (game.gameState == Game1.GameState.CharacterChangeScene)
     {
         characterChanged.update(gameTime, Interface, game);
         return;
     }
 }