示例#1
0
    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();
    }
示例#2
0
 public void ReportScore()
 {
     _leaderboardManager.SubmitLevel();
 }