Esempio n. 1
0
        protected override void Update(GameTime gameTime)
        {
            if (!_keyboardControl.EditingMode && _keyboardControl.IsKeyPressed(Keys.Escape))
            {
                Exit();
            }

            _keyboardComponent.Update();
            _mouseComponent.Update();
            _guiManager.Update();
            _boardManager.Update(gameTime);

            base.Update(gameTime);
        }
Esempio n. 2
0
        protected override void Update(GameTime gameTime)
        {
            var keyboardState = Keyboard.GetState();

            if (keyboardState.IsKeyDown(Keys.Escape))
            {
                Exit();
            }

            _mouseComponent.Update();
            UpdateEdition();
            UpdateDragSegment();
            UpdateScroll();

            _keyboardComponent.Update();
            _guiManager.Update();

            base.Update(gameTime);
        }