英雄升级特效

This commit is contained in:
xiekaidong 2023-06-13 18:49:55 +08:00
parent e010700340
commit 3c54f4e9c8

View File

@ -74,7 +74,7 @@ function HeroDetailUI:_display(lvChange)
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId, true))
if i == activeCount and lvChange and self.heroEntity:getLv() == skillLvs[i] then
local x, y = skillBg:fastGetAnchoredPosition()
self.spineObjSkill:setLocalPosition(x, y)
self.spineObjSkill:setAnchoredPosition(x, y)
self.spineObjSkill:setVisible(true)
self.spineObjSkill:playAnim("idle", false, true)
end