private void OnAchievementUpdated(CEvent e) { GP_GamesResult result = e.data as GP_GamesResult; SA_StatusBar.text = "Achievment Updated: Id: " + result.achievementId + "\n status: " + result.message; AN_PoupsProxy.showMessage("Achievment Updated ", "Id: " + result.achievementId + "\n status: " + result.message); }
private void OnAchievementUpdated(string data) { string[] storeData; storeData = data.Split(AndroidNative.DATA_SPLITTER [0]); GP_GamesResult result = new GP_GamesResult(storeData [0]); result.achievementId = storeData [1]; ActionAchievementUpdated(result); }
private void OnScoreSubmitted(string data) { if (data.Equals(string.Empty)) { Debug.Log("GooglePlayManager OnScoreSubmitted, no data avaiable"); return; } string[] storeData; storeData = data.Split(AndroidNative.DATA_SPLITTER [0]); GP_GamesResult result = new GP_GamesResult(storeData [0]); result.leaderboardId = storeData [1]; ActionScoreSubmited(result); }
private void OnPlayerScoreUpdated(string data) { if (data.Equals(string.Empty)) { Debug.Log("GooglePlayManager OnPlayerScoreUpdated, no data avaiable"); return; } Debug.Log("OnPlayerScoreUpdated"); string[] storeData; storeData = data.Split(AndroidNative.DATA_SPLITTER [0]); GP_GamesResult result = new GP_GamesResult(storeData [0]); if (result.isSuccess) { GPBoardTimeSpan timeSpan = (GPBoardTimeSpan)System.Convert.ToInt32(storeData[1]); GPCollectionType collection = (GPCollectionType)System.Convert.ToInt32(storeData[2]); string leaderboardId = storeData[3]; long score = System.Convert.ToInt64(storeData[4]); int rank = System.Convert.ToInt32(storeData[5]); GPLeaderBoard lb; if (_leaderBoards.ContainsKey(leaderboardId)) { lb = _leaderBoards[leaderboardId]; } else { lb = new GPLeaderBoard(leaderboardId, ""); _leaderBoards.Add(leaderboardId, lb); } GPScore variant = new GPScore(score, rank, timeSpan, collection, lb.id, player.playerId); lb.UpdateScore(variant); lb.UpdateCurrentPlayerRank(rank, timeSpan, collection); } ActionPlayerScoreUpdated(result); dispatch(SCORE_UPDATED, result); }
void OnScoreSbumitted(GP_GamesResult result) { SA_StatusBar.text = "Score Submit Resul: " + result.message; LoadScore(); }
private void OnAchievementUpdated(GP_GamesResult result) { SA_StatusBar.text = "Achievment Updated: Id: " + result.achievementId + "\n status: " + result.message; AN_PoupsProxy.showMessage ("Achievment Updated ", "Id: " + result.achievementId + "\n status: " + result.message); }