Esempio n. 1
0
    //--------------------------------------
    //  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);
    }
Esempio n. 2
0
    //--------------------------------------
    //  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);
    }
Esempio n. 3
0
    private void OnLeaderBoarScoreLoaded(CEvent e)
    {
        LeaderBoardScoreData data = e.data as LeaderBoardScoreData;

        IOSNativePopUpManager.showMessage("Leader Board " + data.leaderBoardId, "Score: " + data.leaderBoardScore + "\n" + "Rank:" + data.GetRank());
    }