예제 #1
0
    public static void Save(ReactionGameScript money)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Path.Combine(Application.persistentDataPath, "save.data");
        FileStream      stream    = new FileStream(path, FileMode.Create);

        SaveData data = new SaveData(money);

        formatter.Serialize(stream, data);
        stream.Close();
    }
예제 #2
0
 public SaveData(ReactionGameScript game)
 {
     highScoreE = game.highScoreE;
     highScoreM = game.highScoreM;
     highScoreH = game.highScoreH;
 }