Finished upgrade menu

This commit is contained in:
Pasha Bibko committed 2026-05-05 11:37:07 +01:00
1 parent 066b3bc958
commit 528ed9f413
3 files changed
+419 -1

No files matched your search

+7
View File
@@ -1,6 +1,7 @@
using PashaBibko.Pacore.Attributes;
using Fruitomation.Game;
using UnityEngine;
using UnityEngine.Rendering;
namespace Fruitomation.Global
{
@@ -17,6 +18,12 @@ namespace Fruitomation.Global
Instance.InternalCurrentMoney += amount;
}
public static bool CouldBuy(double amount)
{
double val = Instance.InternalCurrentMoney - amount;
return val > 0f;
}
public static bool CanBuy(double amount)
{
double val = Instance.InternalCurrentMoney - amount;