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