c8047bd170
add food indicator
16 lines
429 B
C#
16 lines
429 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(PlayerManager playerController)
|
|
{
|
|
playerController.energy.increase(_energyPerTick);
|
|
}
|
|
}
|
|
}
|