Example #1
0
 void OpenPacket(GameObject go)
 {
     if (m_curRedPacket != null)
     {
         if (m_curRedPacket.status == (uint)RedPacketStatus.eRedPacketNormal)
         {
             stRecvRedPacketChatUserCmd_CS cmd = new stRecvRedPacketChatUserCmd_CS();
             cmd.id = m_curRedPacket.id;
             NetService.Instance.Send(cmd);
         }
         else if (m_curRedPacket.status == (uint)RedPacketStatus.eRedpacketEmpty)
         {
             TipsManager.Instance.ShowTips(LocalTextType.Red_Tips_henyihanhongbaoyijingbeiqiangwanle);
             stRedPacketInfoChatUserCmd_C cmd = new stRedPacketInfoChatUserCmd_C();
             cmd.id = m_curRedPacket.id;
             NetService.Instance.Send(cmd);
             return;
         }
         else
         {
             stRedPacketInfoChatUserCmd_C cmd = new stRedPacketInfoChatUserCmd_C();
             cmd.id = m_curRedPacket.id;
             NetService.Instance.Send(cmd);
         }
     }
 }
    void OnGrapSys(GameObject go)
    {
        stRecvRedPacketChatUserCmd_CS cmd = new stRecvRedPacketChatUserCmd_CS();

        cmd.id = m_uRedID;
        NetService.Instance.Send(cmd);
        HideSelf();
    }
Example #3
0
    /// <summary>
    ///抢到的红包
    /// </summary>
    /// <param name="cmd"></param>
    public void OnReciveGrapRedEnvelopeInfo(stRecvRedPacketChatUserCmd_CS cmd)
    {
        ChangeRedStatus(cmd.id, RedPacketStatus.eRedPacketRecv);

        DispatchValueUpdateEvent(RedEnveLopeEvent.RefreshRedEnvelopeGrid.ToString(), null, cmd.id);
    }
Example #4
0
 public void OnReciveGrapRedEnvelopeInfo(stRecvRedPacketChatUserCmd_CS cmd)
 {
     DataManager.Manager <RedEnvelopeDataManager>().OnReciveGrapRedEnvelopeInfo(cmd);
 }