Beispiel #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (!_raceStarted)
            {
                HandlePreRaceEvents();
            }

            _progressCoordinator.Update(MillisecondsSinceLastUpdate);
            if (_progressCoordinator.OpponentAttackPending)
            {
                SetUpOpponentAttack();
            }
            HandleCommunications();
        }
Beispiel #2
0
        public override void Update(int millisecondsSinceLastUpdate)
        {
            InputSourceLost = !InputProcessor.IsAvailable;
            if (!string.IsNullOrEmpty(InputProcessor.LastInGameButtonPressed))
            {
                HandleInGameButtonPress();
            }

            base.Update(millisecondsSinceLastUpdate);

            if ((!_raceStarted) && (_cameraController.LockedOntoStartPoint) && (!_countdownPopup.Running))
            {
                ReadyToRace = true; RaceStartCallback();
            }

            _progressCoordinator.Update(millisecondsSinceLastUpdate);
            if (_progressCoordinator.OpponentAttackPending)
            {
                SetUpOpponentAttack();
            }

            HandleCommunications();
        }