Esempio n. 1
0
 /// <summary>
 /// 解散房间
 /// </summary>
 private void OnDissloutionClick()
 {
     if (playerInfoProxy.userID != battleProxy.creatorId && battleProxy.GetIsFirstMatch())
     {
         DialogMsgVO dialogMsgVO = new DialogMsgVO();
         dialogMsgVO.title           = "退出确认";
         dialogMsgVO.content         = "是否退出房间";
         dialogMsgVO.dialogType      = DialogType.CONFIRM;
         dialogMsgVO.confirmCallBack = delegate { ConfirmExit(); };
         DialogView dialogView = UIManager.Instance.ShowUI(UIViewID.DIALOG_VIEW) as DialogView;
         dialogView.data = dialogMsgVO;
     }
     else
     {
         DialogMsgVO dialogMsgVO = new DialogMsgVO();
         dialogMsgVO.dialogType      = DialogType.CONFIRM;
         dialogMsgVO.title           = "解散确认";
         dialogMsgVO.content         = "是否解散房间";
         dialogMsgVO.confirmCallBack = delegate { ConfirmDissloution(); };
         DialogView dialogView = UIManager.Instance.ShowUI(UIViewID.DIALOG_VIEW) as DialogView;
         dialogView.data = dialogMsgVO;
     }
     Debug.Log("发送解散房间");
 }