public void Update(GameTime time, KeyboardState teclado, KeyboardState tecladoanterior, GamePadState _controle, GamePadState _controleanterior) { jogador1.Update(time, teclado, tecladoanterior, _controle, _controleanterior); if (!playing_musica) { playing_musica = true; MediaPlayer.Play(musica); MediaPlayer.Volume = 0.5f; } if ((teclado.IsKeyDown(Keys.PageUp)) && !(tecladoanterior.IsKeyDown(Keys.PageUp))) { MediaPlayer.Volume += 0.1f; } if ((teclado.IsKeyDown(Keys.PageDown)) && !(tecladoanterior.IsKeyDown(Keys.PageDown))) { MediaPlayer.Volume -= 0.1f; } asteroide_gerenciador.Update(time); }