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); }
private void reportMapScore() { reportScore(SocialLeaderboards.GetLeaderboardForMap(points.Map), points.Points); }
private void reportGeneralScore() { reportScore(SocialLeaderboards.GetGeneralLeaderboard(), points.Points); }
public SocialActionShowLeaderboard(GameMap map) { leaderboard = SocialLeaderboards.GetLeaderboardForMap(map); }