Added item registry
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user