// Use this for initialization void Start() { initUI(); GlobalDataScript.isonLoginPage = false; checkEnterInRoom(); addListener(); if (CommonEvent.getInstance().DisplayBroadcast != null) { CommonEvent.getInstance().DisplayBroadcast(); } staticc__ChoiceR_api choose = new staticc__ChoiceR_api(); choose.rtype = ApiCode.CODE_ZERO; CustomSocket.getInstance().sendMsg(new ClientRequest(ApiCode.ChooseGameRequest). SetContent <staticc__ChoiceR_api>(choose)); }
/*** * 打开创建房间的对话框 * */ public void openCreateRoomDialog() { SoundCtrl.getInstance().playSoundUI(true); if (GlobalDataScript.loginResponseData == null || GlobalDataScript.loginResponseData.roomId == 0) { loadPerfab("Prefab/Panel_Create_Dialog"); } else { TipsManagerScript.getInstance().setTips("当前正在房间状态,无法创建房间"); } staticc__ChoiceR_api choose = new staticc__ChoiceR_api(); choose.rtype = 0; CustomSocket.getInstance().sendMsg(new ClientRequest(ApiCode.ChooseGameRequest). SetContent <staticc__ChoiceR_api>(choose)); }