protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) { Exit(); } if (GamePad.GetState(PlayerIndex.One).Buttons.Start == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.F5)) { CurrentScreen = new GamePlayScreen(this, Graphics); CurrentScreen.Start(); } CurrentScreen.Update(gameTime); // TODO: Add your update logic here base.Update(gameTime); }