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); } } }