Esempio n. 1
0
        public void EndGame()
        {
            DisableNudge();
            DisableBall();
            DisableBumpers();

            var reward = _pointsService.CalculateReward();

            _gameController.AddMoney((int)reward);
            _gameController.SaveGamepoints((int)reward);

            if (_gameController.FirstGamePlayed == false)
            {
                _gameController.FirstGamePlayed = true;
                _gameController.CompletedFirstGame();
            }

            _pointsService.ResetPoints();
        }