Added item registry

This commit is contained in:
2026-04-18 12:52:28 +01:00
parent 1908024332
commit cd7f16f021
29 changed files with 187 additions and 53 deletions

View File

@@ -7,15 +7,15 @@ namespace Fruitomation.Global
{
private static MoneyController Instance;
[SerializeField, InspectorReadOnly("Game State")] private ulong InternalCurrentMoney;
[SerializeField, InspectorReadOnly("Game State")] private double InternalCurrentMoney;
public static ulong Current
public static double Current
{
get => Instance.InternalCurrentMoney;
set => Instance.InternalCurrentMoney = value;
}
public static void Add(ulong amount) => Instance.InternalCurrentMoney += amount;
public static void Add(double amount) => Instance.InternalCurrentMoney += amount;
private void Awake()
{