【特效】修复部分技能特效显示异常的问题
parent
b256e13889
commit
844e265453
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue