Files
SimUL/Assets/Scripts/Actions/Eat.cs
T
Vladimir Koshevarov c8047bd170 Fix shop System
add food indicator
2022-11-17 17:24:00 +02:00

22 lines
542 B
C#

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