Finished upgrade menu

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

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;