技能成功使用

This commit is contained in:
wulongxiao 2024-12-24 16:43:25 +08:00
parent 0a6cdaed3f
commit a687aab64c
2 changed files with 3 additions and 7 deletions

View File

@ -107,11 +107,11 @@ public class Fun : Base
targetRole.Navigation.StopPathDoTween(duration);
Debug.LogWarning(targetRole.name + "执行眩晕效果");
Debug.LogWarning($"Applied Deceleration for {duration} seconds to {targetRole.name}.");
Debug.LogWarning($"应用减速 {duration} 至 {targetRole.name}.");
}
else
{
Debug.Log($"Deceleration Buff did not trigger on {targetRole.name}.");
Debug.Log($"减速buff未触发 on {targetRole.name}.");
}
};
}

View File

@ -85,15 +85,11 @@ public class Role : Fun
if (HpTextPrefab != null && hp < maxHp)
{
hit();
Debug.LogError("僵直效果,被注释了");
Navigation.StopPathDoTween(0.2f); // 停止任何进行中的 DoTween 动画0.2s为示例值
GameObject go = GameObject.Instantiate(HpTextPrefab, _Canvas.transform);
go.GetComponent<SnowHpControl>().direction = HurtDirectin;
go.GetComponent<SnowHpControl>().CreateText();
go.GetComponent<Text>().text = (temp - hp).ToString("F0"); // 显示伤害值
//FlashRedEffect(); // 血量减少时的红色闪烁效果
}
// 判断角色是否死亡
if (hp <= 0)
@ -206,7 +202,7 @@ public class Role : Fun
{
foreach (var buff in PlayerBuff)
{
Debug.LogError(this.name + "执行buff");
Debug.LogError(this.name + "进入执行buff判断");
buff.Invoke(this); // 将自己作为目标传递
}