added tooltips

This commit is contained in:
Vladimir Koshevarov
2022-11-29 19:09:00 +02:00
parent 2167b43c29
commit 73f06d8754
33 changed files with 1264 additions and 250 deletions
+10 -5
View File
@@ -1,15 +1,20 @@
namespace Assets.Scripts.Actions
using Assets.Scripts.Actions.Interfaces;
namespace Assets.Scripts.Actions
{
public class Relax : BaseAction
public class Relax : IPlayerAction
{
private int _energyPerTick;
public Relax(int duration, int energyPerTick) : base(duration)
public Relax(int duration, int energyPerTick)
{
_energyPerTick = energyPerTick;
}
public override void ApplyAction(PlayerManager playerController)
public string Description => throw new System.NotImplementedException();
public void ApplyAction(PlayerManager playerController)
{
playerController.energy.increase(_energyPerTick);
playerController.PlayerStats[GameManager.StatsId.Energy].increase(_energyPerTick);
}
}
}