| | |
| | | public const int TotleEquip = 12; //装备栏大小 |
| | | public bool waitEquipOPPack = false; // 穿戴装备的操作 不含分解 |
| | | public event Action<bool, int> OnEquipOPResultAction; //是否换上了新装备且分解了 装备索引 |
| | | public event Action<List<int>, RectTransform> OnItemDropEvent; |
| | | public event Action<BattleDrops> OnItemDropEvent; |
| | | |
| | | //用于飘动逻辑 |
| | | // public Dictionary<int, EquipOnFloorInfo> equipFloorInfo = new Dictionary<int, EquipOnFloorInfo>(); //真实背包的索引,对应地板装备的信息 |
| | |
| | | if (!string.IsNullOrEmpty(guid)) |
| | | return; |
| | | |
| | | lastDropIndexs = drops.dropItemPackIndex; |
| | | // lastDropIndexs = drops.dropItemPackIndex; |
| | | // Debug.Log("-掉落装备 " + lastDropIndexs.Count + " 个" + JsonMapper.ToJson(lastDropIndexs)); |
| | | NotifyItemDrop(drops.dropItemPackIndex, drops.rectTransform); |
| | | NotifyItemDrop(drops); |
| | | action?.Invoke(); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | //掉落通知 |
| | | public void NotifyItemDrop(List<int> indexs, RectTransform rect) |
| | | public void NotifyItemDrop(BattleDrops drops)//(List<int> indexs, RectTransform rect) |
| | | { |
| | | // 界面不显示则立即处理 |
| | | // if (!UIManager.Instance.IsOpened<HomeWin>()) |
| | |
| | | // { |
| | | // OnItemDropEvent?.Invoke(indexs, rect); |
| | | // } |
| | | OnItemDropEvent?.Invoke(indexs, rect); |
| | | OnItemDropEvent?.Invoke(drops); |
| | | } |
| | | |
| | | public void CalcFloorEquip(int itemIndex) |