Files
SimUL/Assets/Scripts/Actions/Relax.cs
T
Vladimir Koshevarov b71fa6a9eb Refactor code
2023-02-28 16:19:40 +02:00

21 lines
544 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.Stats[StatsId.Energy].increase(_energyPerTick);
}
}
}