CommandCallbackType ReceiveEquipmentUpLevelMsg(byte[] dataBuffer, int socketID) { TraceUtil.Log(SystemModel.Jiang, "收到装备升级回复"); SMsgGoodsOperateEquipLevelUp_SC sMsgGoodsOperateEquipLevelUp_SC = SMsgGoodsOperateEquipLevelUp_SC.ParsePackage(dataBuffer); UIEventManager.Instance.TriggerUIEvent(UIEventType.EqipmentLevelUp, sMsgGoodsOperateEquipLevelUp_SC); return(CommandCallbackType.Continue); }
/// <summary> /// 升级成功刷新界面 /// </summary> /// <param name="obj">Object.</param> void UpdatePanel(object obj) { UpgradeSuccess_go.SetActive(false); UpgradeSuccess_go.SetActive(true); //long newEquipmentID = (long)obj; SMsgGoodsOperateEquipLevelUp_SC msg = (SMsgGoodsOperateEquipLevelUp_SC)obj; if (msg.bySucess == 1) //升级成功 { TraceUtil.Log(SystemModel.Jiang, "装备升级成功"); //Show(null); m_UpgradeItemListPanel.UpdateItemList(); ItemFielInfo newItemData = ContainerInfomanager.Instance.GetItemFileInfoBuyUID(msg.NewItemUID); m_UpgradeItemListPanel.OnMyItemClick(newItemData); } }
void UpdatePanel(object obj) { //long newEquipmentID = (long)obj; SMsgGoodsOperateEquipLevelUp_SC msg = (SMsgGoodsOperateEquipLevelUp_SC)obj; if (msg.bySucess == 1)//升级成功 { ContainerInfomanager.Instance.CheckShowEquipmentEff(); TraceUtil.Log(SystemModel.wanglei, "装备升级成功"); SoundManager.Instance.PlaySoundEffect("Sound_UIEff_Equipment_Success"); EquipmentUpgradeDataManger.Instance.NewItemUID = msg.NewItemUID; UpdateListPanel(); var eff = UpgradeSuccessEff; Point_Eff.ClearChild(); StartCoroutine(GoodsOperateSmeltEff(eff, null)); } }