/** * Loop principal do jogo, atualiza as telas */ protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { this.Exit(); } infoCard.update(gameTime, infoCard.isActive ? TouchPanel.GetState() : new TouchCollection()); statisticCard.update(gameTime, statisticCard.isActive ? TouchPanel.GetState() : new TouchCollection()); helpCard.update(gameTime, helpCard.isActive ? TouchPanel.GetState() : new TouchCollection()); devInfoCard.update(gameTime, devInfoCard.isActive ? TouchPanel.GetState() : new TouchCollection()); // if(!infoCard.isActive) screenManager.update(gameTime); base.Update(gameTime); }