Files
SimUL/Assets/Scripts/Actions/Relax.cs
T
2022-08-18 16:07:06 +03:00

16 lines
421 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.restEnergy.increase(_energyPerTick);
}
}
}