예제 #1
0
    private void OnRspUseTank(SocketModel model)
    {
        RspUseTank rsp = SerializeUtil.Deserialize <RspUseTank>(model.message);

        //CacheManager.instance.equip.tank = rsp.itemid;

        UIManager.instance.Get <SelectWeaponWindow>().UpdataTank(rsp.itemid);
    }
예제 #2
0
    private void OnReqUseTank(UserToken token, SocketModel model)
    {
        ReqUseTank req = SerializeUtil.Deserialize <ReqUseTank>(model.message);

        CacheManager.instance.ChangeEquipTank(token.accountid, req.itemid);

        RspUseTank rsp = new RspUseTank();

        rsp.itemid = req.itemid;
        NetworkManager.Send <RspUseTank>(token, (int)MsgID.RspUseTank, rsp);
    }