Finished upgrade menu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user