sleep increase the energy

This commit is contained in:
Vladimir Koshevarov
2023-03-14 13:36:24 +02:00
parent f6a8ca9d9d
commit dbd1d16a24
9 changed files with 60 additions and 76 deletions
-1
View File
@@ -18,7 +18,6 @@ namespace Assets.Scripts.Actions
}
public void ApplyAction(Player playerController)
{
playerController.WorkPlace = this;
}
}
}
-20
View File
@@ -1,20 +0,0 @@
using Assets.Scripts.Actions.Interfaces;
namespace Assets.Scripts.Actions
{
public class Relax : IPlayerAction
{
private int _energyPerTick;
public Relax(int duration, int energyPerTick)
{
_energyPerTick = energyPerTick;
}
public string Description => throw new System.NotImplementedException();
public void ApplyAction(Player playerController)
{
playerController.Stats[StatsId.Energy].increase(_energyPerTick);
}
}
}
-11
View File
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 986e2b29060766347a43dc46e30a648e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: