Fixed reset progress
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.IO;
|
||||
using Fruitomation.Game;
|
||||
using Fruitomation.Global;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -21,7 +22,11 @@ namespace Fruitomation.UI
|
||||
ResetButton.onClick.AddListener(() =>
|
||||
{
|
||||
File.WriteAllText(BuildingManager.Filepath, "");
|
||||
|
||||
UpgradeManager.ResetUpgrades();
|
||||
MoneyController.ResetCurrentMoney();
|
||||
|
||||
SceneController.StartLoadOf("GameScene");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user