16 lines
421 B
C#
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);
|
|
}
|
|
}
|
|
}
|