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); }
public SaveData(CheckTyping checkTyping) { currentChapter = checkTyping.GetChapter(); }