Example #1
0
 public void ReportMatchEnd(CurrentPoints points, bool isMultiplayer)
 {
     run(() => {
         new SocialActionReportToEvents(points, isMultiplayer).Report();
         new SocialActionReportToAchievements(points, isMultiplayer).Report();
         new SocialActionReportToLeaderboards(points.GetPoints()).Report();
     });
 }
Example #2
0
 public void ReportMatchEnd(CurrentPoints points, bool isMultiplayer)
 {
     run(() => {
         new SocialActionReportToEvents(points, isMultiplayer).Report();
         new SocialActionReportToAchievements(points, isMultiplayer).Report();
         new SocialActionReportToLeaderboards(points.GetPoints()).Report();
     });
 }
Example #3
0
    private void handleLocalEnd()
    {
        GamePoints finalPoints = points.GetPoints();

        if (network != null)
        {
            network.LocalEndPoints(finalPoints);
        }

        SocialManager.BackgroundActions.ReportMatchEnd(points, playersPoints.PlayersCount > 1);

        PointsHistory pointsHistory = PointsHistoryFactory.GetForCurrentMap();

        pointsHistory.AddPoints(finalPoints);
        GamePoints maxPoints = pointsHistory.GetMaxPoints();

        gui.AddElement(GuiElementFactory.GetEndElement(maxPoints, backToMenuButton, showRankingButton));
        playersPoints.DisplayEndView();
    }