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;