示例#1
0
        private void FillingStatistic()
        {
            //SaveRecordData();



            var   save  = _safePlayerPrefs;
            float Crash = 12;

            if (_gameData.IsFinishedRecord != 1)
            {
                Crash = _gameWindow._playerCar.transform.position.x;
            }
            //_stasticService.Create_Record_data(_gameData.track_id, _gameWindow.triesCount, _playerCar.name, _playerCar.timer, save.GetFloat_ExpForTrick(), _gameData.IsFinishedRecord, Crash, _playerManager.PlayerId,_playerManager.PlayerDisplayName, _gameData, _playerManager.selectedCar);

            if (_gameData.GameType == GameTypeEnum.MultyNew)
            {
                _stasticService.UserStatistic.Clear();
            }

            _stasticService.CreateUserStatistic(save.GetInt_TrickFlipSum(), save.GetFloat_HorseTime(), save.GetFloat_90Time(), save.GetFloat_TrickAirTime(), save.GetMaxFlip, save.GetMaxBalance, save.GetMaxBlunt, save.GetMaxInAir, save.GetFloat_ExpForTrick(), _gameData);
        }