예제 #1
0
    private float Height = 58;  // 아이템 높이

    public void Clean()
    {
        _info    = null;
        rank     = 0;
        IsMyData = false;
        UserId   = 0;
        for (int i = 0; i < _imgTrophy.Length; i++)
        {
            _imgTrophy[i].gameObject.SetActive(false);
        }
        for (int i = 0; i < _imgRank.Length; i++)
        {
            _imgRank[i].gameObject.SetActive(false);
        }
        _imgBgBase.gameObject.SetActive(false);
        _imgBgActive.gameObject.SetActive(false);
        _imgSpinToEnter.gameObject.SetActive(false);
        _imgUpDowney.gameObject.SetActive(false);
        _imgDnDowney.gameObject.SetActive(false);
        _imgUpRank.gameObject.SetActive(false);
        _imgDnRank.gameObject.SetActive(false);
        _PhotoGroup.gameObject.SetActive(false);
    }
예제 #2
0
    public void SetInfo(PK.TmtNowRank.REDataData data)
    {
        Clean();
        _info  = data;
        UserId = _info.user_id;

        if (USER.I.GetUserInfo().GetId() == _info.user_id)
        {
            _imgPhoto.texture = USER.I.CurProfileTexture;
        }

        if (_info.rank <= 5)
        {
            _imgRank[_info.rank - 1].gameObject.SetActive(true);
            if (_info.rank <= 3)
            {
                _imgTrophy[_info.rank - 1].gameObject.SetActive(true);
            }
        }

        //_textRank.text = _info.rank.ToString();
        if (_info.earned_total > 0)
        {
            _textPrizePool.gameObject.SetActive(true);
            _textPrizePool.text = _info.earned_total.ToString("#,#0");
        }
        else
        {
            _textPrizePool.gameObject.SetActive(false);
        }

        if (!string.IsNullOrEmpty(_info.picture))
        {
            _PhotoGroup.gameObject.SetActive(true);
            StartCoroutine(coLoadPicture(_info.picture));
        }
    }