예제 #1
0
    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);
    }
예제 #2
0
    private void ReciveSelectCardGroup(params object[] args)
    {
        DuelSelectGroupCardDTO dto = (DuelSelectGroupCardDTO)args[0];

        if (dto.isSelect)
        {
            SelectCard(dto.rank);
        }
        else
        {
            DisSelectCard(dto.rank);
        }
    }