/// <summary> /// 打开房间 /// </summary> private void OpenRoom() { //创建房间逻辑 m_room = new PVPRoom(); m_room.Create(); //房间通知游戏开始 m_room.onNotifyGameStart += (param) => { StartGame(param); }; //显示房间UI UIManager.Instance.OpenPage(UIDef.UIPVPRoomPage); }
/// <summary> /// open a room /// </summary> private void OpenRoom() { //create PVP room m_room = new PVPRoom(); m_room.Create(); //notify game starts m_room.onNotifyGameStart += (param) => { StartGame(param); }; //show room UI UIManager.Instance.OpenPage(UIConst.UIPVPRoomPage); }