Exemplo n.º 1
0
    private void reportCumulativeScore()
    {
        GameStorage <int> cumulativeScoreStorage = GameStorageKeys.CumulativeScore;
        int previousScore = cumulativeScoreStorage.Exists() ? cumulativeScoreStorage.Get() : 0;
        int currentScore  = previousScore + points.Points;

        cumulativeScoreStorage.Set(currentScore);
        reportScore(SocialLeaderboards.GetCumulativeLeaderboard(), currentScore);
    }
Exemplo n.º 2
0
 private void reportMapScore()
 {
     reportScore(SocialLeaderboards.GetLeaderboardForMap(points.Map), points.Points);
 }
Exemplo n.º 3
0
 private void reportGeneralScore()
 {
     reportScore(SocialLeaderboards.GetGeneralLeaderboard(), points.Points);
 }
 public SocialActionShowLeaderboard(GameMap map)
 {
     leaderboard = SocialLeaderboards.GetLeaderboardForMap(map);
 }