public void SendClientChangeEquip()
    {
        Coop_Model_ClientChangeEquip coop_Model_ClientChangeEquip = new Coop_Model_ClientChangeEquip();

        coop_Model_ClientChangeEquip.id       = 1003;
        coop_Model_ClientChangeEquip.userInfo = coopClient.userInfo;
        Send(coop_Model_ClientChangeEquip, true, 0, null, null);
    }
 public virtual bool OnRecvClientChangeEquip(Coop_Model_ClientChangeEquip model)
 {
     if (userInfo != null)
     {
         userInfo = model.userInfo;
         if (MonoBehaviourSingleton <GameSceneManager> .IsValid())
         {
             MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(GameSection.NOTIFY_FLAG.RECEIVE_COOP_ROOM_UPDATE);
         }
     }
     return(true);
 }
Exemple #3
0
    protected override bool HandleCoopEvent(CoopPacket packet)
    {
        bool result = false;

        switch (packet.packetType)
        {
        case PACKET_TYPE.CLIENT_STATUS:
        {
            Coop_Model_ClientStatus model5 = packet.GetModel <Coop_Model_ClientStatus>();
            result = coopClient.OnRecvClientStatus(model5, packet);
            break;
        }

        case PACKET_TYPE.CLIENT_LOADING_PROGRESS:
        {
            Coop_Model_ClientLoadingProgress model4 = packet.GetModel <Coop_Model_ClientLoadingProgress>();
            result = coopClient.OnRecvClientLoadingProgress(model4);
            break;
        }

        case PACKET_TYPE.CLIENT_CHANGE_EQUIP:
        {
            Coop_Model_ClientChangeEquip model3 = packet.GetModel <Coop_Model_ClientChangeEquip>();
            result = coopClient.OnRecvClientChangeEquip(model3);
            break;
        }

        case PACKET_TYPE.CLIENT_BATTLE_RETIRE:
        {
            Coop_Model_ClientBattleRetire model2 = packet.GetModel <Coop_Model_ClientBattleRetire>();
            result = coopClient.OnRecvClientBattleRetire(model2);
            break;
        }

        case PACKET_TYPE.CLIENT_SERIES_PROGRESS:
        {
            Coop_Model_ClientSeriesProgress model = packet.GetModel <Coop_Model_ClientSeriesProgress>();
            result = coopClient.OnRecvClientSeriesProgress(model);
            break;
        }
        }
        return(result);
    }