private void OnPause() { var dateTime = _gameService.GetServerDateTime(); var diff = dateTime - TransientData.AppStarted; StatsCollector.Instance[Stats.TIME_PLAYED] += diff.TotalMilliseconds; _leaderboardManager.SubmitLevel(); _leaderboardManager.SubmitTimeSpent(diff); StatsCollector.Instance.Save(); Player.LegacyPlayerData.Save(); }
public void ReportScore() { _leaderboardManager.SubmitLevel(); }