public void Save() { PlayerData player = new PlayerData(GlobalVar.instance.runtime.player, WorldStreamer.instance.loadedScenes); GlobalData global = new GlobalData(GlobalVar.instance); MetaData meta = GlobalVar.instance.metaData; List <PuzzleData> puzzle = PuzzleManager.instance.puzzles; SaveData saveData = new SaveData(player, global, meta, puzzle); SaveFormatter.Save(saveData); }
private void buttonNewGame_Click(object sender, EventArgs e) { double newBalanceAmount = 2000; SaveFormatter.Save(0); GameForm gameForm = new GameForm(newBalanceAmount); gameForm.Show(); gameForm.StartPosition = FormStartPosition.Manual; gameForm.Location = this.Location; this.Hide(); }