Esempio n. 1
0
 void Callback(string str)
 {
     leaderboardData = JsonUtility.FromJson <GSLeaderboardData>(str);
     data            = JsonUtility.FromJson <PlayerData>(leaderboardData.scriptData.AllData.scriptData.data);
     playerName.text = leaderboardData.scriptData.AllData.displayName;
     if (!string.IsNullOrEmpty(leaderboardData.scriptData.AllData.scriptData.FBID))
     {
         StartCoroutine(LoadImage(leaderboardData.scriptData.AllData.scriptData.FBID));
     }
     if (data != null)
     {
         mmr.text = data.MMR.ToString();
         OnlineImage.gameObject.SetActive(IsOnline());
         OnlineImage.color = IsFree() ? Color.green : Color.red;
     }
     detailsSet();
 }
Esempio n. 2
0
 public void Reset()
 {
     value = new GSLeaderboardData();
 }