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