From f9106a0eed9dbce68562439f1949670d6314d9cd Mon Sep 17 00:00:00 2001 From: "DESKTOP-MMO982B\\User" <752966621@qq.com> Date: Wed, 6 Aug 2025 19:21:13 +0800 Subject: [PATCH] 1 --- .../Modules/Battle/View/Unit/SkillCaster.lua | 34 ++++++++++++++++++- 1 file changed, 33 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 295cdfc239..a6bf1e1bd5 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/SkillCaster.lua @@ -762,7 +762,39 @@ function SkillCaster:CheckFullSceenSkill(combat, skill,skillduration) -- BattleManager.AddDelayRecycleRes(combat.CloseRangeHit, go2, 3000/1000) -- 额外增加0.2秒显示时间 -- end - -- end + -- end + -- 全屏特效 + elseif combat.EffectType == 9 then + local path = combat.Bullet + if path then + + local pos = self:GetEffectPosition(skill) + if not pos then + return + end + -- 特效的偏移量 + local offset = combat.Offset and Vector3.New(combat.Offset[1], combat.Offset[2], 0) or Vector3.zero + + -- + local go = BattleManager.LoadAsset(path, self.effectRoot:GetComponent("Canvas").sortingOrder) + -- 检测特效旋转 + if self:CheckRotate(go, combat.Orientation) then + offset = -offset + end + if go ~=nil then + go.transform:SetParent(self.effectRoot.transform) + go.transform.localScale = Vector3.New(combat.HitScale[1]/1000,combat.HitScale[2]/1000,1) + go.transform.localPosition = pos + offset + go:SetActive(true) + local compnet=go:GetComponent("SkeletonGraphic") + if compnet~=nil then + -- compnet.transform.localScale = Vector3.one * 3 + -- compnet.transform.sizeDelta = Vector2.New(1000, 1000) + self.owner:PlaySpineAnim (compnet,0,"play_skill_self",true) + end + BattleManager.AddDelayRecycleRes(path, go, combat.BulletTime==0 and 4 or combat.BulletTime/1000) + end + end end -- 取消高亮