merge projects and arrange script folders

This commit is contained in:
voffka81
2022-08-17 11:14:32 +03:00
parent beea2145cb
commit c0ea0addcb
35 changed files with 608 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace Assets.Scripts.Actions
{
public class Relax : BaseAction
{
private PlayerController _playerController;
private int _energyPerTick;
public Relax(PlayerController player, int duration, int energyPerTick) : base(duration)
{
_playerController = player;
_energyPerTick = energyPerTick;
}
public override void ConsumeTick()
{
_playerController.restEnergy.increase(_energyPerTick);
}
}
}