减速buff

This commit is contained in:
wulongxiao 2024-12-25 11:23:00 +08:00
parent a11428678c
commit f69a20cbd2
5 changed files with 6 additions and 5 deletions

@ -1 +1 @@
Subproject commit 2910125393539e34101a4d133d4396395bc9cc8b
Subproject commit 50720f393c90b130c39161e96fba56d8fc085b8a

View File

@ -55,6 +55,10 @@ public class laohuSkillUp :SkillUp
{
base.AttackCooldown *= 0.95f;
//buff
Action<Role> decelerationBuff = CreateSlowDownBuff(1f, 0.2f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
Debug.LogError("使用技能2-3");
}
/// <summary>
/// 喷火冷却时间增加30%,持续喷火时间增加50%

View File

@ -74,7 +74,7 @@ public class enemy : Role
}
// 减速并在指定时间后恢复原速度
public void SlowDown(float slowFactor, float duration)
public override void SlowDown(float slowFactor, float duration)
{
if (!isSlowed)
{

View File

@ -28,7 +28,6 @@ public class infobox_skill_up : MonoBehaviour
void UpgradeCLick()
{
if (Skillspend.levelNumber <Skillspend.Maxlevel && (SkillBox.instance.expList.Count - Skillspend.spendNumber)>=0)
{
SkillBox.instance.UpdataExp(-Skillspend.spendNumber);

View File

@ -6,8 +6,6 @@ using UnityEngine;
//用户详情
public class playerInfo : MonoBehaviour
{
public Dictionary<string, string> CreateHeaders()
{
if (string.IsNullOrEmpty(MyGlobal.global.loginResponse.Data.access_token))