display player money, dialog when player have not enough money
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
namespace Assets.Scripts.Actions
|
||||
using Assets.Scripts.Actions.Interfaces;
|
||||
|
||||
namespace Assets.Scripts.Actions
|
||||
{
|
||||
public class Eat : BaseAction
|
||||
public class Eat : BaseAction, ISellableItem
|
||||
{
|
||||
public double Cost { get; private set; }
|
||||
private int energyPerTick;
|
||||
public Eat(int duration, int energyPerTick, double cost) : base(duration)
|
||||
{
|
||||
Cost = cost;
|
||||
this.energyPerTick = energyPerTick;
|
||||
}
|
||||
public override void ApplyAction(PlayerController playerController)
|
||||
|
||||
Reference in New Issue
Block a user