start to change action system
This commit is contained in:
@@ -2,14 +2,12 @@
|
||||
{
|
||||
public class Eat : BaseAction
|
||||
{
|
||||
private PlayerController playerController;
|
||||
private int energyPerTick;
|
||||
public Eat(PlayerController player, int duration, int energyPerTick, double cost) : base(duration)
|
||||
public Eat(int duration, int energyPerTick, double cost) : base(duration)
|
||||
{
|
||||
this.playerController = player;
|
||||
this.energyPerTick = energyPerTick;
|
||||
}
|
||||
public override void ConsumeTick()
|
||||
public override void ApplyAction(PlayerController playerController)
|
||||
{
|
||||
playerController.foodEnergy.increase(energyPerTick);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user