Files
SimUL/Assets/Scripts/Actions/Relax.cs
T
2022-11-17 16:12:51 +02:00

16 lines
432 B
C#

namespace Assets.Scripts.Actions
{
public class Relax : BaseAction
{
private int _energyPerTick;
public Relax(int duration, int energyPerTick) : base(duration)
{
_energyPerTick = energyPerTick;
}
public override void ApplyAction(PlayerController playerController)
{
playerController.energy.increase(_energyPerTick);
}
}
}