Files
SimUL/Assets/Scripts/Actions/Relax.cs
T

21 lines
550 B
C#

using Assets.Scripts.Actions.Interfaces;
namespace Assets.Scripts.Actions
{
public class Relax : IPlayerAction
{
private int _energyPerTick;
public Relax(int duration, int energyPerTick)
{
_energyPerTick = energyPerTick;
}
public string Description => throw new System.NotImplementedException();
public void ApplyAction(Player playerController)
{
playerController.PlayerStats[StatsId.Energy].increase(_energyPerTick);
}
}
}