Fixed reset progress

This commit is contained in:
Pasha Bibko
2026-05-05 11:42:09 +01:00
parent 528ed9f413
commit 670b8e3473
2 changed files with 11 additions and 2 deletions

View File

@@ -1,7 +1,5 @@
using PashaBibko.Pacore.Attributes;
using Fruitomation.Game;
using UnityEngine;
using UnityEngine.Rendering;
namespace Fruitomation.Global
{
@@ -13,6 +11,12 @@ namespace Fruitomation.Global
private double InternalCurrentMoney;
public static double CurrentAmount => Instance.InternalCurrentMoney;
public static void ResetCurrentMoney()
{
Instance.InternalCurrentMoney = 0f;
PlayerInfo.Data.CurrentMoney = 0f;
}
public static void Add(double amount)
{
Instance.InternalCurrentMoney += amount;