private void SaveButton_Click(object sender, RoutedEventArgs e) { if (saveFile != null) { saveFile.Save(null); } }
public void Save() { SavegameSaving = true; SavegameSaved = false; Thread t = new Thread(() => { CurrentSavegame.Save(null); SavegameSaved = true; }); t.Start(); StartCoroutine(DoSave()); }
private void SaveButton_Click(object?sender, RoutedEventArgs e) { SaveFile?.Save(null); }