示例#1
0
 /// <summary>
 /// 创建房间
 /// </summary>
 private void OnCreateClick()
 {
     if (roomName.text == "")
     {
         UIManager.Instance.ShowMessage("房间名不能为空!");
         return;
     }
     RequestCenter.GetInstance().CreateRoom(roomName.text, num);
 }
示例#2
0
 private void HandleResponse(MainPack pack)
 {
     RequestCenter.GetInstance().HandleResponse(pack);
     //Debug.Log("client处理");
 }
示例#3
0
 /// <summary>
 /// 查询房间
 /// </summary>
 private void OnFindClick()
 {
     RequestCenter.GetInstance().FindRoom();
 }
示例#4
0
 public void JoinRoom(string roomName)
 {
     RequestCenter.GetInstance().JoinRoom(roomName);
 }
示例#5
0
 private void OnStartClick()
 {
     RequestCenter.GetInstance().StartGame();
 }
示例#6
0
 private void OnBackClick()
 {
     RequestCenter.GetInstance().ExitRoom();
 }