hch
14 小时以前 f0b84a5808e4ee357e8770282b77c6355aec9404
Main/System/Equip/EquipModel.cs
@@ -11,7 +11,7 @@
    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>(); //真实背包的索引,对应地板装备的信息
@@ -98,9 +98,9 @@
        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();
    }
@@ -140,7 +140,7 @@
    //掉落通知
    public void NotifyItemDrop(List<int> indexs, RectTransform rect)
    public void NotifyItemDrop(BattleDrops drops)//(List<int> indexs, RectTransform rect)
    {
        // 界面不显示则立即处理
        // if (!UIManager.Instance.IsOpened<HomeWin>())
@@ -154,7 +154,7 @@
        // {
        //     OnItemDropEvent?.Invoke(indexs, rect);
        // }
        OnItemDropEvent?.Invoke(indexs, rect);
        OnItemDropEvent?.Invoke(drops);
    }
    public void CalcFloorEquip(int itemIndex)