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