private void SendSelectCardGroup(params object[] args) { Debug.Log("发送信息:选择卡片组"); DuelSelectGroupCardDTO dto = new DuelSelectGroupCardDTO(); dto.isSelect = (bool)args[0]; dto.rank = (int)args[1]; Send(dto, DuelProtocol.SelectCardGroup_BRQ); }
private void ReciveSelectCardGroup(params object[] args) { DuelSelectGroupCardDTO dto = (DuelSelectGroupCardDTO)args[0]; if (dto.isSelect) { SelectCard(dto.rank); } else { DisSelectCard(dto.rank); } }