From 20a4a46f304902ef5726612ebfc546bf9f5e23a9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RH64908\\Administrator" Date: Fri, 30 Jan 2026 14:02:54 +0800 Subject: [PATCH] 1 --- .../~Lua/Modules/Battle/View/Unit/SkillCaster.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua index d255847cd9..eda296ad42 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua @@ -966,7 +966,9 @@ function SkillCaster:RoleViewBullet(combat, target) go.transform.position = self.owner.GameObject.transform.position Util.ClearTrailRender(go) go:SetActive(true) - + local sortingOrder = self.owner.role.camp == 0 and + self.owner.GameObject:GetComponent("Canvas").sortingOrder + 21 or BattleManager.GetBattleSorting() + 20 + Util.AddParticleSortLayer(go, sortingOrder) -- local startV3 = go.transform.position -- local endV3 = self.owner.RootPanel.GetRoleView(target).GameObject.transform.position