public void OnRoomClick(string index) { var room = RoomListModel.Instance.RoomUnitModel[int.Parse(index)]; YxTools.GoldJoinRoom(room.GameKey, room.TypeId, delegate { RoomListController.Instance.OnDirectGame(room); }); }
private void OnOpenQuickGame() { RoomUnitModel model = new RoomUnitModel(null); model.TypeId = _curData.GameType.ToString(); model.GameKey = _curData.GameKey; YxTools.GoldJoinRoom(model.GameKey, model.TypeId, delegate { RoomListController.Instance.OnDirectGame(model); }); }