private void ISN_OnLBSetsBoardsLoaded(string array) { string[] data = array.Split("|" [0]); string identifier = data[0]; foreach (GCLeaderboardSet lb in LeaderboardSets) { if (lb.Identifier.Equals(identifier)) { for (int i = 1; i < data.Length; i += 3) { GCLeaderBoardInfo info = new GCLeaderBoardInfo(); info.Title = data[i]; info.Description = data[i + 1]; info.Identifier = data[i + 2]; lb.AddBoardInfo(info); } lb.SendSuccessLoadEvent(); return; } } }
public void AddBoardInfo(GCLeaderBoardInfo info) { _BoardsInfo.Add(info); }
private void ISN_OnLBSetsBoardsLoaded(string array) { string[] data = array.Split("|" [0]); string identifier = data[0]; foreach(GCLeaderboardSet lb in LeaderboardSets) { if(lb.Identifier.Equals(identifier)) { for(int i = 1; i < data.Length; i+=3) { GCLeaderBoardInfo info = new GCLeaderBoardInfo(); info.Title = data[i]; info.Description = data[i + 1]; info.Identifier = data[i + 2]; lb.AddBoardInfo(info); } lb.SendSuccessLoadEvent(); return; } } }
public GCLeaderboard(string leaderboardId) { _info = new GCLeaderBoardInfo(); _info.Identifier = leaderboardId; }