public void Update(GameTime gameTime, Controls _controls) { menuChoosen = false; if(_controls.menuUp() || _controls.menuRight()) { menuItem++; } if (_controls.menuDown() || _controls.menuLeft()) { menuItem--; } if (_controls.pause()) { menuChoosen = true; menuItem = 1; } if (_controls.accept()) { menuChoosen = true; } if (menuItem > 2) menuItem = 1; if (menuItem < 1) menuItem = 2; pauseSprite.Update(gameTime, menuItem); if (menuChoosen) { pauseSprite.IsVisible = false; } }
public void Update(Controls _controls, GameTime gameTime) { animation.Update(gameTime); menuChoosen = false; if (_controls.menuUp()) { menuItem--; } if (_controls.menuDown()) { menuItem++; } if (menuItem > 4) menuItem = 1; if (menuItem < 1) menuItem = 4; if (_controls.accept()) menuChoosen = true; }