diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoLuckyBossPopup.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoLuckyBossPopup.lua index cd271e8e25..b2892b7bd0 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoLuckyBossPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoLuckyBossPopup.lua @@ -69,9 +69,6 @@ function XiaoYaoLuckyBossPopup:OnShow() LogBlue("得到得怪物不存在") this:ClosePanel() end - for i = 1, #monsterGroup do - LogYellow("monster.monsterInDex:"..monsterGroup[i].monsterIndex) - end fightBossIndex = XiaoYaoManager.fightBossIndex LogYellow("fightBossIndex:"..fightBossIndex) if fightBossIndex == 0 then @@ -209,7 +206,8 @@ function XiaoYaoLuckyBossPopup:SetSingleReward(id) if not rewardPrefabs[i] then rewardPrefabs[i] = SubUIManager.Open(SubUIConfig.ItemView,this.rewardList.transform) end - rewardPrefabs[i].gameObject:SetActive(true) + rewardPrefabs[i].gameObject:SetActive(true) + LogRed("id:"..data[i][1].." data[i][2]:"..data[i][2]) rewardPrefabs[i]:OnOpen(false, {data[i][1],data[i][2]},0.8,false,false,false) end end diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoManager.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoManager.lua index 51551ecc61..f2a025bfcc 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoManager.lua @@ -38,6 +38,7 @@ function this.OpenXiaoYaoMap(mapId,func) end) end this.fightBossIndex = 0 + this.GetHeroIndex = 0 this.InitLuckyTurnTables(msg) this.InitMonsterData(msg.monsterInfo,1) this.InitHeroData(msg.goodsInfo,1) @@ -318,6 +319,7 @@ function this.ExecuteFightBattle(id,func) else this.UpdateMonsterData(msg.monster) this.OpenXiaoYaoMap(XiaoYaoManager.curMapId,function() + this.fightBossIndex = id UIManager.OpenPanel(UIName.XiaoYaoLuckyBossPopup) end) end