//-------------------------------------- // EVENTS //-------------------------------------- private void onLeaderBoardScore(string array) { string[] data; data = array.Split("," [0]); LeaderBoardScoreData lData = new LeaderBoardScoreData(); lData.leaderBoardId = data [0]; lData.leaderBoardScore = data [1]; lData.rank = data [2]; dispatcher.dispatch(GAME_CENTER_LEADER_BOARD_SCORE_LOADED, lData); }
//-------------------------------------- // EVENTS //-------------------------------------- private void onLeaderBoardScore(string array) { string[] data; data = array.Split("," [0]); LeaderBoardScoreData lData = new LeaderBoardScoreData (); lData.leaderBoardId = data [0]; lData.leaderBoardScore = data [1]; lData.rank = data [2]; dispatcher.dispatch (GAME_CENTER_LEADER_BOARD_SCORE_LOADED, lData); }
private void OnLeaderBoarScoreLoaded(CEvent e) { LeaderBoardScoreData data = e.data as LeaderBoardScoreData; IOSNativePopUpManager.showMessage("Leader Board " + data.leaderBoardId, "Score: " + data.leaderBoardScore + "\n" + "Rank:" + data.GetRank()); }