private static void Save() { var gameProgress = new GameProgressSaveData(); gameProgress.Levels = Levels; SaveIO.SaveGameProgress(gameProgress); }
public static void SaveGameProgress(GameProgressSaveData progress) { var filePath = Path.Combine(baseSavePath, "progress.dat"); FileReadWrite.WriteToBinaryFile(filePath, progress); }