Exemplo n.º 1
0
    private void SendSelectGroupCardCon(params object[] args)
    {
        Debug.Log("发送信息:选择卡片组操作");
        DuelSelectGroupCardConDTO dto = new DuelSelectGroupCardConDTO();

        dto.CtrType = (int)args[0];
        Send(dto, DuelProtocol.SelectGroupCardCon_BRQ);
    }
Exemplo n.º 2
0
    private void ReciveSelectCardGroupCon(params object[] args)
    {
        DuelSelectGroupCardConDTO dto = (DuelSelectGroupCardConDTO)args[0];

        if (dto.CtrType == 1)
        {
            HandleTurnBack();
        }
        else if (dto.CtrType == 2)
        {
            HandleTurnForward();
        }
        else if (dto.CtrType == 3)
        {
            HandleApplyButton();
        }
        else
        {
            Debug.Log("error");
        }
    }