大小
This commit is contained in:
parent
f0cb7a6d73
commit
f9b9dc1726
@ -91,6 +91,7 @@ end
|
||||
|
||||
function BattleUnitComp:resetBeforeAttack()
|
||||
self.attackCount = 0
|
||||
self.baseObject:getTransform():SetAsLastSibling()
|
||||
end
|
||||
|
||||
function BattleUnitComp:initPassiveSkills()
|
||||
|
||||
@ -64,8 +64,8 @@ function HeroCell:addClickListener(callback)
|
||||
self.clickCallback = callback
|
||||
end
|
||||
|
||||
function HeroCell:setVisible(visible)
|
||||
self.baseObject:setVisible(visible)
|
||||
function HeroCell:setVisible(visible, scale)
|
||||
self.baseObject:setVisible(visible, scale)
|
||||
end
|
||||
|
||||
function HeroCell:setGray(isGray)
|
||||
|
||||
@ -129,7 +129,7 @@ function MainComp:refreshStageFormaion()
|
||||
if formation[i] then
|
||||
local heroEntity = DataManager.HeroData:getHeroById(formation[i])
|
||||
if heroEntity then
|
||||
heroCell:setVisible(true)
|
||||
heroCell:setVisible(true, 0.84)
|
||||
heroCell:refresh(heroEntity)
|
||||
heroCell:addClickListener(function()
|
||||
ModuleManager.HeroManager:showHeroDetailUI(heroEntity:getCfgId())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user