WIP Wasserstand UI
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace Babushka.scripts.CSharp.Common.Farming;
|
||||
|
||||
public static class WateringCanState
|
||||
{
|
||||
private static int _fillstate = 0;
|
||||
|
||||
public const int MAX_FILLSTATE = 6;
|
||||
|
||||
public static void Fill()
|
||||
{
|
||||
_fillstate = MAX_FILLSTATE;
|
||||
}
|
||||
|
||||
public static void Water()
|
||||
{
|
||||
if(_fillstate > 0)
|
||||
_fillstate--;
|
||||
}
|
||||
|
||||
public static void Reset()
|
||||
{
|
||||
_fillstate = 0;
|
||||
}
|
||||
|
||||
public static int GetFillState()
|
||||
{
|
||||
return _fillstate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user