| | |
| | | [SerializeField] RectTransform floorUI; //掉落道具显示的父类
|
| | | [SerializeField] FloorItemCell floorItemCell; //非装备显示组件
|
| | | [SerializeField] MoneyMoveByPath moneyMoveByPathCell; //掉落物金钱
|
| | | [SerializeField] RectTransform defaultDropRect; //默认掉落位置
|
| | |
|
| | | FloorItemCell[] floorItemCells = new FloorItemCell[20]; //包含非装备的战利品掉落
|
| | | MoneyMoveByPath[] moneyMoveByPathArr = new MoneyMoveByPath[20]; //掉落货币,金钱,经验等
|
| | |
| | | private void OnEnable()
|
| | | {
|
| | | //主界面打开和显隐都要刷新
|
| | | Display();
|
| | | Display(true, EquipModel.Instance.lastDropIndexs);
|
| | | EquipModel.Instance.OnItemDropEvent += NotifyPlayItemDrop;
|
| | | PackManager.Instance.DeleteItemEvent += DeleteDropItem;
|
| | | }
|
| | |
| | | item.SetActive(false);
|
| | | continue;
|
| | | }
|
| | | if (indexList != null && !indexList.Contains(i))
|
| | | if (!indexList.IsNullOrEmpty() && !indexList.Contains(i))
|
| | | {
|
| | | //不干涉其他掉落物品
|
| | | continue;
|
| | | }
|
| | |
|
| | | item.SetActive(true);
|
| | | item.Display(i, isAnimate, rect);
|
| | | item.Display(i, isAnimate, rect == null ? defaultDropRect : rect);
|
| | | }
|
| | | }
|
| | |
|