Fixed reset progress
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user