Example #1
0
    private static void Save()
    {
        var gameProgress = new GameProgressSaveData();

        gameProgress.Levels = Levels;
        SaveIO.SaveGameProgress(gameProgress);
    }
Example #2
0
    public static void SaveGameProgress(GameProgressSaveData progress)
    {
        var filePath = Path.Combine(baseSavePath, "progress.dat");

        FileReadWrite.WriteToBinaryFile(filePath, progress);
    }