public void UpdateRanking(FBRankingType atype, MonoBehaviour callbackObject, string callbackMethod) { rankingCallback = callbackObject; rankingCallbackMethod = callbackMethod; if (atype == FBRankingType.GLOBAL) { currentRanking = globalRanking; StartCoroutine(PlayerRankUpdateCorutine(PlayerGetGlobalRanking)); } else { currentRanking = friendsRanking; StartCoroutine(PlayerRankUpdateCorutine(PlayerGetFriendsRanking)); } currentRanking.players.Clear(); currentRanking.state = FBRankingState.LOADING; }
public FBRanking(FBRankingType atype) { players = new List <Player>(); type = atype; state = FBRankingState.INIT; }