| | |
| | | public void UpdateAutoItemCountRefresh(HA206_tagMCAutoItemCountRefresh netPack) |
| | | { |
| | | |
| | | ShowRewardWin(netPack);//vNetData中ItemCount传的是碎片总数,需要在noPackItemCountDict写入数据之前计算差值 |
| | | for (int i = 0; i < netPack.Count; i++) |
| | | { |
| | | noPackItemCountDict[(int)netPack.ItemCountList[i].ItemID] = (int)netPack.ItemCountList[i].ItemCount; |
| | | } |
| | | OnNoPackItemCountRefresh?.Invoke(); |
| | | } |
| | | |
| | | void ShowRewardWin(HA206_tagMCAutoItemCountRefresh vNetData) |
| | | { |
| | | getA206Count += 1; |
| | | if (ItemLogicUtility.Instance.hidePickItem) |
| | | return; |
| | | // if (ModelCenter.Instance.GetModel<GatheringSoulModel>().isOpenXBWin) |
| | | // return; |
| | | if (getA206Count <= 1 && !isFrist) |
| | | return; |
| | | |
| | | for (int i = 0; i < vNetData.ItemCountList.Length; i++) |
| | | { |
| | | int itemID = (int)vNetData.ItemCountList[i].ItemID; |
| | | int itemCount = (int)vNetData.ItemCountList[i].ItemCount; |
| | | if (noPackItemCountDict.ContainsKey(itemID) && noPackItemCountDict[itemID] > itemCount) |
| | | return; |
| | | ItemLogicUtility.Instance.RefreshPickItem(PackType.Item, itemID.ToString()); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | item.ParsePackItem(items[i].ItemPlace, items[i].ItemData); |
| | | |
| | | ItemLogicUtility.Instance.RefreshPickItem(packType, item.id.ToString()); |
| | | } |
| | | } |
| | | |