diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua index 0002b5a2fa..6bd88ea087 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua @@ -1,4 +1,4 @@ - + local Bezier = require("Base.Bezier") local SkillLogicConfig = ConfigManager.GetConfig(ConfigName.SkillLogicConfig) local BuffEffectConfig = ConfigManager.GetConfig(ConfigName.BuffEffectConfig) @@ -523,7 +523,8 @@ function SkillCaster:CheckSkillHitEffect(checkType, combat, skill) local sortingOrder = self.owner.role.camp == 0 and self.owner.GameObject:GetComponent("Canvas").sortingOrder + 21 or BattleManager.GetBattleSorting() + 20 local go2 = BattleManager.LoadAsset(combat.Hit, sortingOrder) - go2.transform:SetParent(self.owner.GameObject.transform.parent) + -- go2.transform:SetParent(self.owner.GameObject.transform.parent) + go2.transform:SetParent(self.effectRoot.transform) -- 检测特效旋转 if self:CheckRotate(go2, combat.HitOrientation) then offset = -offset @@ -531,7 +532,6 @@ function SkillCaster:CheckSkillHitEffect(checkType, combat, skill) go2.transform.localScale = Vector3.one go2.transform.localPosition = Vector3.zero--self.GameObject.transform.localPosition + Vector3.New(0, self.BuffFloatingCount * 180, 0) go2.transform.anchoredPosition = offset--Vector2.zero - go2.transform:SetParent(self.effectRoot.transform) go2:SetActive(true) BattleManager.AddDelayRecycleRes(combat.Hit, go2, 5) end