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