Esempio n. 1
0
    public void OnClubStateCallBack(ClientResponse response)
    {
        ClubStateVO vo = JsonMapper.ToObject <ClubStateVO>(response.message);

        if (vo.msgcode != 0)
        {
            isinClub = false;
            clubState.SetActive(false);
            GlobalDataScript.clubid = 0;
            clubnametxt.text        = "";
            mycreditScoretxt.text   = "";
            clubIDtxt.text          = "";
        }
        else
        {
            isinClub = true;
            clubState.SetActive(true);
            clubnametxt.text               = vo.clubname;
            GlobalDataScript.clubid        = vo.clubid;
            GlobalDataScript.mycreditScore = vo.creditScore;
            mycreditScoretxt.text          = "当前信用分:" + vo.creditScore;
            clubIDtxt.text = "俱乐部ID:" + vo.clubid.ToString();
            ClubStateScript cs = clubState.GetComponent <ClubStateScript>();
            cs.setValue(vo);
            addRoomList(vo.listroom);
        }
    }
Esempio n. 2
0
 public void setValue(ClubStateVO vo)
 {
     headIcon         = vo.icoimg;
     clubid.text      = vo.clubid.ToString();
     clubname.text    = vo.clubname;
     membercount.text = vo.membercount.ToString();
     roomcount.text   = vo.roomcount.ToString();
     StartCoroutine(LoadImg());
 }