|
|
@@ -323,53 +323,53 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (eventConditionConfig.optionType == 3)
|
|
|
- {
|
|
|
- Btn_Bag.gameObject.SetActive(true);
|
|
|
- List<ItemInfo> itemInfos = new List<ItemInfo>();
|
|
|
- for (var i = 0; i < eventConditionConfig.PrizeIDs.Length; i++)
|
|
|
- {
|
|
|
- DropConfig dropConfig =
|
|
|
- ConfigComponent.Instance.Get<DropConfig>(eventConditionConfig.PrizeIDs[i]);
|
|
|
- if (dropConfig.dropType == 3)
|
|
|
- {
|
|
|
- ItemInfo itemInfo = new ItemInfo(dropConfig.dropGroupID[0],
|
|
|
- eventConditionConfig.PrizeNums[i]);
|
|
|
- itemInfos.Add(itemInfo);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- List<ItemInfo> items = DropManager.Instance.DropItem(eventConditionConfig.PrizeIDs[i]);
|
|
|
- itemInfos.AddRange(items);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- ShowItemMoveToTargetPanel showItemMoveToTargetUiPane =
|
|
|
- UIManager.Instance.GetComponent<ShowItemMoveToTargetPanel>();
|
|
|
- Vector3 target = showItemMoveToTargetUiPane.transform.worldToLocalMatrix *
|
|
|
- Btn_Bag.transform.position;
|
|
|
- Vector3 startPos = showItemMoveToTargetUiPane.transform.worldToLocalMatrix *
|
|
|
- StartPos.transform.position;
|
|
|
- int maxCount = 1;
|
|
|
-
|
|
|
- foreach (var itemInfo in itemInfos)
|
|
|
- {
|
|
|
- int addValue = (int)itemInfo.count.Value / maxCount;
|
|
|
- int finishVale = (int)itemInfo.count.Value % maxCount;
|
|
|
- // ItemInfo i = itemInfo;
|
|
|
- showItemMoveToTargetUiPane.ShowPanel(startPos, target, maxCount, itemInfo.config.icon,
|
|
|
- CombatItemShowEventData.ShowType.HeroExp, (imageMove) =>
|
|
|
- {
|
|
|
- int currAddValue = addValue;
|
|
|
- if (imageMove.GroupIndex == maxCount - 1)
|
|
|
- {
|
|
|
- currAddValue += finishVale;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- await TimerComponent.Instance.WaitAsync(2000);
|
|
|
- }
|
|
|
+ // if (eventConditionConfig.optionType == 3)
|
|
|
+ // {
|
|
|
+ // Btn_Bag.gameObject.SetActive(true);
|
|
|
+ // List<ItemInfo> itemInfos = new List<ItemInfo>();
|
|
|
+ // for (var i = 0; i < eventConditionConfig.PrizeIDs.Length; i++)
|
|
|
+ // {
|
|
|
+ // DropConfig dropConfig =
|
|
|
+ // ConfigComponent.Instance.Get<DropConfig>(eventConditionConfig.PrizeIDs[i]);
|
|
|
+ // if (dropConfig.dropType == 3)
|
|
|
+ // {
|
|
|
+ // ItemInfo itemInfo = new ItemInfo(dropConfig.dropGroupID[0],
|
|
|
+ // eventConditionConfig.PrizeNums[i]);
|
|
|
+ // itemInfos.Add(itemInfo);
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+ // List<ItemInfo> items = DropManager.Instance.DropItem(eventConditionConfig.PrizeIDs[i]);
|
|
|
+ // itemInfos.AddRange(items);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // ShowItemMoveToTargetPanel showItemMoveToTargetUiPane =
|
|
|
+ // UIManager.Instance.GetComponent<ShowItemMoveToTargetPanel>();
|
|
|
+ // Vector3 target = showItemMoveToTargetUiPane.transform.worldToLocalMatrix *
|
|
|
+ // Btn_Bag.transform.position;
|
|
|
+ // Vector3 startPos = showItemMoveToTargetUiPane.transform.worldToLocalMatrix *
|
|
|
+ // StartPos.transform.position;
|
|
|
+ // int maxCount = 1;
|
|
|
+ //
|
|
|
+ // foreach (var itemInfo in itemInfos)
|
|
|
+ // {
|
|
|
+ // int addValue = (int)itemInfo.count.Value / maxCount;
|
|
|
+ // int finishVale = (int)itemInfo.count.Value % maxCount;
|
|
|
+ // // ItemInfo i = itemInfo;
|
|
|
+ // showItemMoveToTargetUiPane.ShowPanel(startPos, target, maxCount, itemInfo.config.icon,
|
|
|
+ // CombatItemShowEventData.ShowType.HeroExp, (imageMove) =>
|
|
|
+ // {
|
|
|
+ // int currAddValue = addValue;
|
|
|
+ // if (imageMove.GroupIndex == maxCount - 1)
|
|
|
+ // {
|
|
|
+ // currAddValue += finishVale;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // await TimerComponent.Instance.WaitAsync(2000);
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
// 无选项,关闭面板,返回 null
|