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