Ejemplo n.º 1
0
    private void BroadcastStats()
    {
        //Send broadcast stats
        SessionStats stats = new SessionStats
        {
            maxSpeedReached = movementManager.GetMaxSpeedReached(),
            maxSpeed        = movementManager.maxSpeed,
            timePlayed      = properTime,
            distortedTime   = relativeExTime - properTime,
            score           = gameMode.sessionScore,
            obstaclesHit    = sessionObstaclesHit
        };

        PersistentPrefs.GetInstance().CheckAchievements(stats);
    }