Finished upgrade menu
This commit is contained in:
1 parent
066b3bc958
commit
528ed9f413
3 files changed
+419
-1
No files matched your search
@@ -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