示例#1
0
    public void Inits(QueryTableInfoResp info)
    {
        this.info = info;

        if (info.isInvite)
        {//是别人邀请
            goBtn.transform.localPosition = new Vector3(-196.5f, -285.6f);
            refuseBtn.SetActive(true);
            UGUIEventListener.Get(refuseBtn).onClick = delegate { Refuse(); };
            titleLb.text = "你收到来自: " + info.hostName + " 的邀请,确认进入以下约牌房?";
        }
        else
        {//自己输入房号
            goBtn.transform.localPosition = new Vector3(0, -285.6f);
            refuseBtn.SetActive(false);
            titleLb.text = "确认进入以下约牌房?";
        }

        roomerLb.text = info.hostName;
        roomId.text   = info.roomId;

        gameTypeLb.text  = info.gameName;
        dizhuLb.text     = info.baseScore + "积分";
        jushuLb.text     = info.round.ToString();
        maxBeishuLb.text = info.maxRate.ToString();

        UGUIEventListener.Get(goBtn).onClick = delegate { EnterRoom(); };
    }
示例#2
0
 /// <summary>
 ///  房间号正确
 /// </summary>
 public static void G2C_EnterSuccess(QueryTableInfoResp resp)
 {
     NodeManager.OpenNode <TipsEnterNode>().Inits(resp);
 }