From 271fc92a75d3d961e9ae602063e64234e006f119 Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Wed, 25 Dec 2024 17:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=A9=E6=99=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Fun.cs | 1 + Role/Role.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Role/Fun.cs b/Role/Fun.cs index 96f1e6b..c11f382 100644 --- a/Role/Fun.cs +++ b/Role/Fun.cs @@ -104,6 +104,7 @@ public class Fun : Base Debug.LogWarning(targetRole.name + "执行眩晕效果"); GameObject go = Instantiate(Resources.Load("A_Fight/XuanYun"), targetRole.transform); + go.transform.position = new Vector2(go.transform.position.x, go.transform.position.y + 0.35f); go.GetComponent().DesSelf(duration); Debug.LogWarning($"应用眩晕 {duration} 至 {targetRole.name}."); } diff --git a/Role/Role.cs b/Role/Role.cs index a8d51a4..5dd3d88 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -81,6 +81,10 @@ public class Role : Fun get => hp; set { + //if (hp<0) + //{ + // return; + //} float temp = hp; hp = value;