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); }
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); }