protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) { Exit(); } // TODO: Add your update logic here float elapsedms = (float)gameTime.ElapsedGameTime.TotalMilliseconds; InputManager.Update(elapsedms); UIBoss.Update(elapsedms, InputManager); // note: it is important that hotkey manager is called last // so that other features have a chance to capture text input InputManager.PostUpdate(); HotkeyManager.Update(elapsedms, InputManager); base.Update(gameTime); }