22 lines
472 B
C#
22 lines
472 B
C#
using Player;
|
|
using UnityEngine;
|
|
|
|
namespace Debuffs
|
|
{
|
|
public class TaserDebuff : DebuffBase
|
|
{
|
|
public TaserDebuff() : base() { }
|
|
public TaserDebuff(float duration) : base(duration) { }
|
|
|
|
public override void Enable(Pawn pawn)
|
|
{
|
|
pawn.SetSpeedMul(0.1f);
|
|
}
|
|
|
|
public override void Disable(Pawn pawn)
|
|
{
|
|
// Debug.Log("Disable taser debuff");
|
|
pawn.SetSpeedMul(1f);
|
|
}
|
|
}
|
|
} |