parent
60a59dbd49
commit
f9106a0eed
|
|
@ -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
|
||||
|
||||
-- 取消高亮
|
||||
|
|
|
|||
Loading…
Reference in New Issue