void OnLeaderboardSetsInfoLoaded(ISN_Result res)
    {
        Debug.Log("OnLeaderboardSetsInfoLoaded");
        GameCenterManager.OnLeaderboardSetsInfoLoaded -= OnLeaderboardSetsInfoLoaded;
        if (res.IsSucceeded)
        {
            foreach (GCLeaderboardSet s in GameCenterManager.LeaderboardSets)
            {
                Debug.Log(s.Title);
                Debug.Log(s.Identifier);
                Debug.Log(s.GroupIdentifier);
            }
        }


        if (GameCenterManager.LeaderboardSets.Count == 0)
        {
            return;
        }

        GCLeaderboardSet LeaderboardSet = GameCenterManager.LeaderboardSets[0];

        LeaderboardSet.OnLoaderboardsInfoLoaded += OnLoaderboardsInfoLoaded;
        LeaderboardSet.LoadLeaderBoardsInfo();
    }
Beispiel #2
0
    private void ISN_OnLBSetsLoaded(string array)
    {
        string[] data = array.Split("|" [0]);

        for (int i = 0; i < data.Length; i += 3)
        {
            GCLeaderboardSet lbSet = new GCLeaderboardSet();
            lbSet.Title           = data[i];
            lbSet.Identifier      = data[i + 1];
            lbSet.GroupIdentifier = data[i + 2];
            LeaderboardSets.Add(lbSet);
        }


        ISN_Result res = new ISN_Result(true);

        OnLeaderboardSetsInfoLoaded(res);
    }
	private void ISN_OnLBSetsLoaded(string array) {

		string[] data = array.Split("|" [0]);

		for(int i = 0; i < data.Length; i+=3) {
			GCLeaderboardSet lbSet =  new GCLeaderboardSet();
			lbSet.Title = data[i];
			lbSet.Identifier = data[i + 1];
			lbSet.GroupIdentifier = data[i + 2];
			LeaderboardSets.Add(lbSet);
		}


		ISN_Result res =  new ISN_Result(true);
		OnLeaderboardSetsInfoLoaded(res);
	}
Beispiel #4
0
 public ISN_LoadSetLeaderboardsInfoResult(GCLeaderboardSet lbset, bool IsResultSucceeded) : base(IsResultSucceeded)
 {
     _LeaderBoardsSet = lbset;
 }
	public ISN_LoadSetLeaderboardsInfoResult(GCLeaderboardSet lbset, bool IsResultSucceeded):base(IsResultSucceeded) {
		_LeaderBoardsSet = lbset;
	}