升级特效

This commit is contained in:
xiekaidong 2023-04-26 10:57:19 +08:00
parent 79b3f3d446
commit 88d4e989d3

View File

@ -1270,7 +1270,18 @@ function BattleUI:refreshLv()
local curExp = DataManager.BattleData:getBattleExp()
local curNeedExp = DataManager.BattleData:getBattleNeedExp()
self.lvSlider.value = curExp / curNeedExp
self.lvDesc:setText(DataManager.BattleData:getBattleLv())
local lv = DataManager.BattleData:getBattleLv()
self.lvDesc:setText(lv)
local sfx = uiMap["battle_ui.bg_2.lv_node.icon.vfx_ui_battle_progress_light_b01"]
if not self.lastLv then
sfx:setActive(true)
sfx:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_EFFECT_HELPER):SetSortingOrder(self:getUIOrder(), GConst.UI_EFFECT_ORDER.LEVEL1)
sfx:setActive(false)
elseif self.lastLv ~= lv then
sfx:setActive(true)
sfx:play()
end
self.lastLv = lv
end
function BattleUI:refreshWave(wave)