public void ReportMatchEnd(CurrentPoints points, bool isMultiplayer) { run(() => { new SocialActionReportToEvents(points, isMultiplayer).Report(); new SocialActionReportToAchievements(points, isMultiplayer).Report(); new SocialActionReportToLeaderboards(points.GetPoints()).Report(); }); }
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(); }