Пример #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();
 }