public static void Update(GameTime gameTime) { _hBox.Update(gameTime); infoScreenTransition.Update(gameTime); if (InputManager.GamePadConnected()) { if (InputManager.OnButtonDown(Buttons.A)) { if (InputManager.OnButtonToggle(Buttons.A)) { infoScreenTransition.Backward(); } else { infoScreenTransition.Forward(); } } } else { if (InputManager.OnKeyDown(_keyboardInput.Inputs[EInput.InfoScreen])) { if (InputManager.OnKeyToggle(_keyboardInput.Inputs[EInput.InfoScreen])) { infoScreenTransition.Backward(); } else { infoScreenTransition.Forward(); } } } }
public override void Update(GameTime gameTime) { _maxHp.SetText("" + _character.MaxHp); _currentHp.SetText("" + _character.CurrentHp); _hBox.Update(gameTime); _hBox.X = _x; _hBox.Y = _y; //_name.CursorOnIt = false; //_maxHp.CursorOnIt = false; //_currentHp.CursorOnIt = false; }
public override void Update(GameTime gameTime) { _box.Update(gameTime); }