伤害数字
This commit is contained in:
parent
a90d9cf51f
commit
ad150a5e08
@ -68,7 +68,9 @@ function BattleHelper:getEffectText(parent)
|
|||||||
prefabObject:addUnloadCallback(function(obj)
|
prefabObject:addUnloadCallback(function(obj)
|
||||||
ResourceManager:unload(obj:getAssetPath())
|
ResourceManager:unload(obj:getAssetPath())
|
||||||
end)
|
end)
|
||||||
|
prefabObject:getTransform():SetAsLastSibling()
|
||||||
local comp = prefabObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_NUMBER_COMPONENT)
|
local comp = prefabObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_NUMBER_COMPONENT)
|
||||||
|
comp:setEnabled(true)
|
||||||
return comp
|
return comp
|
||||||
else
|
else
|
||||||
local effectComp = table.remove(self.battleEffectTextPool)
|
local effectComp = table.remove(self.battleEffectTextPool)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user