伤害数字

This commit is contained in:
chenxi 2023-04-18 11:58:03 +08:00
parent a90d9cf51f
commit ad150a5e08

View File

@ -68,7 +68,9 @@ function BattleHelper:getEffectText(parent)
prefabObject:addUnloadCallback(function(obj)
ResourceManager:unload(obj:getAssetPath())
end)
prefabObject:getTransform():SetAsLastSibling()
local comp = prefabObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_NUMBER_COMPONENT)
comp:setEnabled(true)
return comp
else
local effectComp = table.remove(self.battleEffectTextPool)