眩晕修改

This commit is contained in:
GL 2024-12-25 17:47:37 +08:00
parent 6de0047de2
commit 271fc92a75
2 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class Fun : Base
Debug.LogWarning(targetRole.name + "执行眩晕效果");
GameObject go = Instantiate(Resources.Load<GameObject>("A_Fight/XuanYun"), targetRole.transform);
go.transform.position = new Vector2(go.transform.position.x, go.transform.position.y + 0.35f);
go.GetComponent<XuanYun>().DesSelf(duration);
Debug.LogWarning($"应用眩晕 {duration} 至 {targetRole.name}.");
}

View File

@ -81,6 +81,10 @@ public class Role : Fun
get => hp;
set
{
//if (hp<0)
//{
// return;
//}
float temp = hp;
hp = value;