static public void draw(SpriteBatch spriteBatch, Game1 game, characters.Characters Char, Camera2D cam) { if (game.gameState == Game1.GameState.Paused || game.gameState == Game1.GameState.gameOver) { menuInGame.draw(spriteBatch, Char, cam); return; } if (game.gameState == Game1.GameState.Options) { optionsMenu.Draw(spriteBatch); return; } if (game.gameState == Game1.GameState.Menu) { menuPrincipal.Draw(spriteBatch); return; } if (game.gameState == Game1.GameState.CharacterChoose) { characterChoose.draw(spriteBatch); return; } if (game.gameState == Game1.GameState.MapChoose) { mapChooser.draw(spriteBatch); return; } if (game.gameState == Game1.GameState.OpeningCutScene) { OpeningCutScene.Draw(spriteBatch); return; } if (game.gameState == Game1.GameState.Win) { winMenu.draw(spriteBatch, cam); return; } if (game.gameState == Game1.GameState.CharacterChangeScene) { characterChanged.draw(spriteBatch, cam); return; } }
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; } }