| | |
| | |
|
| | | public override void Init()
|
| | | {
|
| | | playerPack.ItemCntAddAct += ItemCntAddAct;
|
| | | playerPack.RefreshItemCountAct += OnItemRefreshEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChange;
|
| | | }
|
| | |
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | playerPack.ItemCntAddAct -= ItemCntAddAct;//物品数量刷新
|
| | | playerPack.RefreshItemCountAct -= OnItemRefreshEvent;//背包刷新
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChange;
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | private void OnFuncStateChange(int obj)
|
| | | {
|
| | |
| | | Marking = WingNumber;
|
| | | }
|
| | | }
|
| | |
|
| | | public void WingsItemCount(int WingsItemIndex, int ItemCount)//物品数量刷新
|
| | | private void ItemCntAddAct(PackType arg1, int WingsItemIndex, int ItemCount)
|
| | | {
|
| | | if (IsBoolOpenWingeWin)
|
| | | if (arg1 == PackType.rptItem)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (_dicWings.ContainsKey(WingsItemIndex))
|
| | | {
|
| | | if (ItemCount > _dicWings[WingsItemIndex].WingsCount)
|
| | | if (IsBoolOpenWingeWin)
|
| | | {
|
| | | _dicWings[WingsItemIndex].WingsCount = ItemCount;
|
| | | redPointStre.state = RedPointState.Simple;
|
| | | return;
|
| | | }
|
| | | else
|
| | | if (_dicWings.ContainsKey(WingsItemIndex))
|
| | | {
|
| | | _dicWings[WingsItemIndex].WingsCount = ItemCount;
|
| | | if (ItemCount > _dicWings[WingsItemIndex].WingsCount)
|
| | | {
|
| | | _dicWings[WingsItemIndex].WingsCount = ItemCount;
|
| | | redPointStre.state = RedPointState.Simple;
|
| | | }
|
| | | else
|
| | | {
|
| | | _dicWings[WingsItemIndex].WingsCount = ItemCount;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | | }
|
| | |
|