private void OnAmazonScoresLoaded(AMN_ScoresLoadedResult result) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByAmazonId(result.LeaderboardId); if (leaderboard != null) { leaderboard.Setup(SA_AmazonGameCircleManager.Instance.GetLeaderboard(result.LeaderboardId)); UM_LeaderboardResult res = new UM_LeaderboardResult(leaderboard, result); ActionScoresListLoaded(res); } }
void OnAmazonSubmitLeaderboardReceived(AMN_SubmitLeaderboardResult result) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByAmazonId(result.LeaderboardID); if (leaderboard != null) { leaderboard.Setup(SA_AmazonGameCircleManager.Instance.GetLeaderboard(result.LeaderboardID)); UM_LeaderboardResult res = new UM_LeaderboardResult(leaderboard, result); ActionScoreSubmitted(res); } }
void Android_HandleActionScoreSubmited(GP_LeaderboardResult res) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByAndroidId(res.Leaderboard.Id); if (leaderboard != null) { leaderboard.Setup(res.Leaderboard); UM_LeaderboardResult result = new UM_LeaderboardResult(leaderboard, res); ActionScoreSubmitted(result); } }
void IOS_HandleOnScoresListLoaded(GK_LeaderboardResult res) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByIOSId(res.Leaderboard.Id); if (leaderboard != null) { leaderboard.Setup(res.Leaderboard); UM_LeaderboardResult result = new UM_LeaderboardResult(leaderboard, res); ActionScoresListLoaded(result); } }
private void OnGameCenterServiceLeaderDataLoaded(GK_LeaderboardResult res) { if (res.IsSucceeded && res.Leaderboard != null) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByIOSId(res.Leaderboard.Id); if (leaderboard != null) { leaderboard.Setup(res.Leaderboard); } } OnGameCenterServiceDataLoaded(res); }
void OnGooglePlayLeaderDataLoaded(GooglePlayResult res) { foreach (GPLeaderBoard lb in GooglePlayManager.Instance.LeaderBoards) { UM_Leaderboard leaderboard = UltimateMobileSettings.Instance.GetLeaderboardByAndroidId(lb.Id); if (leaderboard != null) { leaderboard.Setup(lb); } } OnGooglePlayServiceDataLoaded(res); }