Esempio n. 1
0
 // 아이템 재배치로 지워야 할 경우
 public void ClearInfo()
 {
     _info = null;
     _txtMsg.gameObject.SetActive(false);
     objPhoto.SetActive(false);
     effect.SetActive(false);
 }
Esempio n. 2
0
    public void SetInfo(PK.WinCast.REData info)
    {
        if (info != null)
        {
            _info = info;
            _txtMsg.gameObject.SetActive(true);
            _txtMsg.text = string.Format("{0} <color=#FEE900>X{1}</color> {2}", info.userName, info.winMultiply, info.gameName);

            if (info.winType == "magawin")
            {
                _imgMega.gameObject.SetActive(true);
                _imgJackpot.gameObject.SetActive(false);
            }
            else if (info.winType == "jackpot")
            {
                _imgMega.gameObject.SetActive(false);
                _imgJackpot.gameObject.SetActive(true);
            }

            if (this.gameObject.activeSelf)
            {
                StartCoroutine(coLoadPicture(info.pictureURL));
            }
        }
    }
Esempio n. 3
0
 // 아이템 재배치로 지워야 할 경우
 public void ClearInfo()
 {
     _info = null;
     _txtMsg.gameObject.SetActive(false);
     objPhoto.SetActive(false);
     _imgMega.gameObject.SetActive(false);
     _imgJackpot.gameObject.SetActive(false);
 }
Esempio n. 4
0
 public void SetInfo(PK.WinCast.REData info)
 {
     _info     = info;
     _lock     = false;
     _lockSend = false;
     gameObject.GetComponent <RectTransform>().anchoredPosition = new Vector2(170f, 0);
     _textWinMultiply.text = string.Format("x{0:D}", info.winMultiply);
     _textUserName.text    = info.userName;
     StartCoroutine(coLoadPicture(info.pictureURL));
     gameObject.GetComponent <RectTransform>().DOAnchorPosX(0, 0.5f);
     StartCoroutine(coCloseTime(closeTime));
 }