bug修复
This commit is contained in:
parent
531961e843
commit
0211dfe5d0
@ -2225,7 +2225,9 @@ end
|
||||
|
||||
function BattleUnitComp:rebirth()
|
||||
self.isClear = false
|
||||
if self.currState == UNIT_STATE.DEAD then
|
||||
self.currState = UNIT_STATE.INIT
|
||||
end
|
||||
self.unitEntity:rebirth()
|
||||
end
|
||||
|
||||
|
||||
@ -199,7 +199,7 @@ function ActPvpSelectUI:refreshSelectInfo()
|
||||
self.heroEntities[inedx] = heroEntity
|
||||
unit.node:setVisible(true)
|
||||
unit.clickMask:addClickListener(function()
|
||||
ModuleManager.HeroManager:showHeroDetailUI(heroId, true)
|
||||
ModuleManager.HeroManager:showHeroDetailUI(nil, true, heroEntity)
|
||||
end)
|
||||
unit.simpleHeroCell:refresh(heroEntity)
|
||||
unit.simpleHeroCell:getBaseObject():setActive(false)
|
||||
@ -224,7 +224,7 @@ function ActPvpSelectUI:refreshSelectInfo()
|
||||
local heroInfo = ConfigManager:getConfig("hero")[heroId]
|
||||
if heroInfo then
|
||||
unit.nextBg1:addClickListener(function()
|
||||
ModuleManager.HeroManager:showHeroDetailUI(heroId, true)
|
||||
ModuleManager.HeroManager:showHeroDetailUI(nil, true, heroEntity)
|
||||
end)
|
||||
local itemInfo = ConfigManager:getConfig("item")[heroInfo.item_id]
|
||||
if itemInfo then
|
||||
@ -239,7 +239,7 @@ function ActPvpSelectUI:refreshSelectInfo()
|
||||
heroInfo = ConfigManager:getConfig("hero")[heroId]
|
||||
if heroInfo then
|
||||
unit.nextBg2:addClickListener(function()
|
||||
ModuleManager.HeroManager:showHeroDetailUI(heroId, true)
|
||||
ModuleManager.HeroManager:showHeroDetailUI(nil, true, heroEntity)
|
||||
end)
|
||||
local itemInfo = ConfigManager:getConfig("item")[heroInfo.item_id]
|
||||
if itemInfo then
|
||||
|
||||
@ -65,14 +65,12 @@ function ActPvpData:init(data)
|
||||
end
|
||||
self:getBountyList()
|
||||
DataManager:registerCrossDayFunc("ActPvpData", function()
|
||||
if self:isFinalDay() then
|
||||
self.playing = false
|
||||
end
|
||||
self.enterCountDaily = 0
|
||||
self.winCount = 0
|
||||
self.loseCount = 0
|
||||
self.heroeAndSkins = {}
|
||||
self.todayAdCount = 0
|
||||
self.dailyRewards = {}
|
||||
self.flushCount = 0
|
||||
self:setDirty()
|
||||
end)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user