public void SetData(PK.AppFriends.REData info) { isAppFriend = true; _FriendsInfo = info; _id = System.Convert.ToInt64(info.uid); _url = info.picture; //_textBalance.text = info.balance.ToString("#,#0"); _textName.text = info.GetName(); /* * if (info.id == USER.I.GetUserInfo().GetIdString()) * { * _toggleCheck.GetComponent<Toggle>().interactable = false; * }*/ }
public void SetInfo(PK.AppFriends.REData info) { _Info = info; _textName.text = info.GetName(); _textBalance.text = info.balance.ToString("#,#0"); if (info.ranking > 3) { _imgRank.gameObject.SetActive(false); } else { _imgRank.sprite = DB.Icon.GetFrinedsRankSprite(info.ranking); } if (info.id == USER.I.GetUserInfo().GetIdString()) { _btnSendGift.GetComponent <Button>().interactable = false; } USER.I.AddFacebookPicture(info.picture, (x) => { _imgPhoto.texture = x; }); }