From ad150a5e0859760c86296b6ed97eca9f553d19c6 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 18 Apr 2023 11:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A4=E5=AE=B3=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/helper/battle_helper.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/app/module/battle/helper/battle_helper.lua b/lua/app/module/battle/helper/battle_helper.lua index f5a5155f..20205c41 100644 --- a/lua/app/module/battle/helper/battle_helper.lua +++ b/lua/app/module/battle/helper/battle_helper.lua @@ -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)