using Assets.Scripts.Actions.Interfaces; namespace Assets.Scripts.Actions { public class Eat : BaseAction, ISellableItem { public float Price { get; private set; } private int _energyPerTick; public Eat(int duration, int energyPerTick, float price) : base(duration) { Price = price; _energyPerTick = energyPerTick; } public override void ApplyAction(PlayerController playerController) { playerController.foodEnergy.increase(_energyPerTick); } } }