Removed currency ammount

This commit is contained in:
Pasha Bibko
2026-04-28 16:07:09 +01:00
parent 61c3123bf9
commit 631d5691ff
8 changed files with 23 additions and 68 deletions

View File

@@ -9,11 +9,12 @@ namespace Fruitomation.Global
private static MoneyController Instance;
[SerializeField, InspectorReadOnly("Current Money")]
private CurrencyAmount InternalCurrentMoney = new();
public static CurrencyAmount Current => Instance.InternalCurrentMoney;
private double InternalCurrentMoney = new();
public static double Current => Instance.InternalCurrentMoney;
public static void Add(CurrencyAmount amount)
public static void Add(double amount)
{
Instance.InternalCurrentMoney += amount;
}
private void Awake()