From 844e265453b4ce4132a28442c41467600d6cb949 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Wed, 9 Jun 2021 16:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=89=B9=E6=95=88=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86=E6=8A=80=E8=83=BD=E7=89=B9=E6=95=88?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/View/Unit/SkillCaster.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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