眩晕修改
This commit is contained in:
parent
6de0047de2
commit
271fc92a75
@ -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}.");
|
||||
}
|
||||
|
@ -81,6 +81,10 @@ public class Role : Fun
|
||||
get => hp;
|
||||
set
|
||||
{
|
||||
//if (hp<0)
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
float temp = hp;
|
||||
hp = value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user