public override void Update(GameTime gameTime)
        {
            if (!string.IsNullOrEmpty(_inputProcessor.LastInGameButtonPressed))
            {
                HandleInGameButtonPress();
            }

            base.Update(gameTime);

            _inputProcessor.Update(MillisecondsSinceLastUpdate);

            _motionController.Update(MillisecondsSinceLastUpdate);
            _cameraController.Update(MillisecondsSinceLastUpdate);
            _timerController.Update(MillisecondsSinceLastUpdate);

            for (int i = 0; i < _objectWithGlowEffect.Count; i++)
            {
                _objectWithGlowEffect[i].UpdateGlow(MillisecondsSinceLastUpdate);
            }

            if (!_pauseController.Paused)
            {
                _opaqueParticleEffectManager.Update(MillisecondsSinceLastUpdate);
                _additiveParticleEffectManager.Update(MillisecondsSinceLastUpdate);
                _animationController.Update(MillisecondsSinceLastUpdate);
                _playerCollisionController.CheckForCollisions();
            }
        }
示例#2
0
        public override void Update(int millisecondsSinceLastUpdate)
        {
            base.Update(millisecondsSinceLastUpdate);

            _motionController.Update(millisecondsSinceLastUpdate);
            _cameraController.Update(millisecondsSinceLastUpdate);
            _timerController.Update(millisecondsSinceLastUpdate);

            if (!_pauseController.Paused)
            {
                _opaqueParticleEffectManager.Update(millisecondsSinceLastUpdate);
                _additiveParticleEffectManager.Update(millisecondsSinceLastUpdate);
                _animationController.Update(millisecondsSinceLastUpdate);
                _playerCollisionController.CheckForCollisions();
            }
        }