16 lines
432 B
C#
16 lines
432 B
C#
namespace Assets.Scripts.Actions
|
|
{
|
|
public class Eat : BaseAction
|
|
{
|
|
private int energyPerTick;
|
|
public Eat(int duration, int energyPerTick, double cost) : base(duration)
|
|
{
|
|
this.energyPerTick = energyPerTick;
|
|
}
|
|
public override void ApplyAction(PlayerController playerController)
|
|
{
|
|
playerController.foodEnergy.increase(energyPerTick);
|
|
}
|
|
}
|
|
}
|