Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public FBRanking(FBRankingType atype)
 {
     players = new List <Player>();
     type    = atype;
     state   = FBRankingState.INIT;
 }