From dadf5e2fe96c7dbfb3a11f8e358cf6e4514a2af5 Mon Sep 17 00:00:00 2001 From: JieLing Date: Wed, 29 Jul 2020 18:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E6=95=88=E6=92=AD=E6=94=BE=E6=97=B6?= =?UTF-8?q?=E6=9C=BA=E6=94=BE=E5=9C=A8=E7=89=B9=E6=95=88=E4=B9=8B=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/View/RoleView.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/RoleView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/RoleView.lua index 0487e1f8d7..f24afc5260 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/RoleView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/RoleView.lua @@ -17,16 +17,17 @@ local floatingEffect = "FloatingText" local buffFloatingEffect = "BuffFloatingText" local loadAsset = function(path, battleSorting) - local go = poolManager:LoadAsset(path, PoolManager.AssetType.GameObject) - local layer = tonumber(go.name) or 0 - battleSorting = battleSorting or BattleManager.GetBattleSorting() - Util.AddParticleSortLayer(go, battleSorting - layer) - go.name = tostring(battleSorting) --- 播放音效 local audioData = FEAConfig.GetAudioData(path) if audioData then SoundManager.PlaySound(audioData.name) end + -- + local go = poolManager:LoadAsset(path, PoolManager.AssetType.GameObject) + local layer = tonumber(go.name) or 0 + battleSorting = battleSorting or BattleManager.GetBattleSorting() + Util.AddParticleSortLayer(go, battleSorting - layer) + go.name = tostring(battleSorting) return go end