public static void SaveGameData(CheckTyping checkTyping)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Application.persistentDataPath + "/data.dat";
        FileStream      stream    = new FileStream(path, FileMode.Create);

        SaveData data = new SaveData(checkTyping);

        formatter.Serialize(stream, data);
        stream.Close();
    }
 public void SaveGame(CheckTyping checkTyping)
 {
     SaveSystem.SaveGameData(checkTyping);
 }
Example #3
0
 public SaveData(CheckTyping checkTyping)
 {
     currentChapter = checkTyping.GetChapter();
 }