| | |
| | | public int lastShowEquipIndex = -1; //上一次界面显示装备的索引,拾取后物品消失需记录下做表现 |
| | | public Queue<int> waitEquipOP = new Queue<int>(); //等待操作的装备,需要和UI交互确认 不含分解 |
| | | |
| | | public List<int> lastDropIndexs = new List<int>(); //上一次掉落物品索引 |
| | | |
| | | public override void Init() |
| | | { |
| | | DTCA814_tagMCMakeItemAnswer.MakeItemAnswerEvent += OnEquipResult; |
| | |
| | | selectFloorEquip = null; |
| | | waitEquipOP.Clear(); |
| | | lastShowEquipIndex = -1; |
| | | lastDropIndexs.Clear(); |
| | | } |
| | | |
| | | |
| | | public static int GetItemServerEquipPlace(int itemId) |
| | | { |
| | |
| | | |
| | | void OnDropEvent(string guid, BattleDrops drops, Action action) |
| | | { |
| | | if (!string.IsNullOrEmpty(guid)) |
| | | return; |
| | | lastDropIndexs = drops.dropItemPackIndex; |
| | | NotifyItemDrop(drops.dropItemPackIndex, drops.rectTransform); |
| | | action?.Invoke(); |
| | | } |