예제 #1
0
    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;
         * }*/
    }
예제 #2
0
    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;
        });
    }