From 88af3457adafcf39247f083ac305476b7b83a6e3 Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Wed, 25 Dec 2024 16:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=A9=E6=99=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Fun.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Role/Fun.cs b/Role/Fun.cs index 05d45dc..96f1e6b 100644 --- a/Role/Fun.cs +++ b/Role/Fun.cs @@ -49,7 +49,8 @@ public enum BuffTypeState public class Fun : Base { - + + /// /// 扣血 传入参数 目标,伤害值,攻击类型,使用者,子弹射来的方向(0是右边,1是左边) /// @@ -101,7 +102,9 @@ public class Fun : Base // 执行眩晕效果 targetRole.Navigation.StopPathDoTween(duration); Debug.LogWarning(targetRole.name + "执行眩晕效果"); - + + GameObject go = Instantiate(Resources.Load("A_Fight/XuanYun"), targetRole.transform); + go.GetComponent().DesSelf(duration); Debug.LogWarning($"应用眩晕 {duration} 至 {targetRole.name}."); } else