|
@@ -104,7 +104,7 @@ namespace GFGGame
|
|
_ui.m_loaMask.visible = false;
|
|
_ui.m_loaMask.visible = false;
|
|
int[][] bonus = LuckyBoxCfgArray.Instance.GetCfg(LuckyBoxDataManager.Instance.luckyBoxId).bonusArr;
|
|
int[][] bonus = LuckyBoxCfgArray.Instance.GetCfg(LuckyBoxDataManager.Instance.luckyBoxId).bonusArr;
|
|
List<ItemData> itemDatas = ItemUtil.CreateItemDataList(bonus, LuckyBoxDataManager.Instance.times);
|
|
List<ItemData> itemDatas = ItemUtil.CreateItemDataList(bonus, LuckyBoxDataManager.Instance.times);
|
|
- ViewManager.Show<LuckyBoxNewDressView>(new object[] { itemDatas });
|
|
|
|
|
|
+ ViewManager.Show<LuckyBoxNewDressView>(itemDatas);
|
|
}
|
|
}
|
|
private void ShowBonusList()
|
|
private void ShowBonusList()
|
|
{
|
|
{
|
|
@@ -232,11 +232,13 @@ namespace GFGGame
|
|
if (cfg.itemType == ConstItemType.DRESS_UP)
|
|
if (cfg.itemType == ConstItemType.DRESS_UP)
|
|
{
|
|
{
|
|
List<ItemData> itemDatas = ItemUtil.CreateItemDataList(itemData.id, itemData.num);
|
|
List<ItemData> itemDatas = ItemUtil.CreateItemDataList(itemData.id, itemData.num);
|
|
- ViewManager.Show<LuckyBoxNewDressView>(new object[] { itemDatas });
|
|
|
|
|
|
+ ViewManager.Show<LuckyBoxNewDressView>(itemDatas);
|
|
}
|
|
}
|
|
else if (cfg.itemType == ConstItemType.CARD)
|
|
else if (cfg.itemType == ConstItemType.CARD)
|
|
{
|
|
{
|
|
- ViewManager.Show<LuckyBoxNewCardView>(new object[] { itemData.id });
|
|
|
|
|
|
+ List<int> list = new List<int>();
|
|
|
|
+ list.Add(itemData.id);
|
|
|
|
+ ViewManager.Show<LuckyBoxNewCardView>(new object[] { list, new List<ItemData>() });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
openCount++;
|
|
openCount++;
|
|
@@ -309,15 +311,16 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_ui.m_loaMask.visible = false;
|
|
_ui.m_loaMask.visible = false;
|
|
_ui.m_loaOpen.visible = false;
|
|
_ui.m_loaOpen.visible = false;
|
|
- if (newItemList.Count > 0)
|
|
|
|
|
|
+
|
|
|
|
+ if (newCardList.Count > 0)
|
|
{
|
|
{
|
|
- ViewManager.Show<LuckyBoxNewDressView>(new object[] { newItemList });
|
|
|
|
|
|
+ ViewManager.Show<LuckyBoxNewCardView>(new object[] { newCardList, newItemList }
|
|
|
|
+ );
|
|
}
|
|
}
|
|
- if (newCardList.Count > 0)
|
|
|
|
|
|
+ else if (newItemList.Count > 0)
|
|
{
|
|
{
|
|
- ViewManager.Show<LuckyBoxNewCardView>(newCardList);
|
|
|
|
|
|
+ ViewManager.Show<LuckyBoxNewDressView>(newItemList);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|