void Awake() { if (TestSystem) { levelSystem = new LevelSystem(); levelSystem.Level = TestLevel; shopSystem = new ShopSystem(); } else { levelSystem = LevelSystem.Load(); shopSystem = ShopSystem.Load(); } }
public void ResetProgress() { Popup.Instance.Confirm("Warning!", "This will reset all of your levels. Are you sure you want to do that?", b => { if (!b) { return; } levelSystem = new LevelSystem(); levelSystem.Save(); shopSystem = new ShopSystem(); shopSystem.Save(); UpdateUi(); UpdateText(); }); }