Example #1
0
    public static void SaveFile3(levelcount player)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Application.persistentDataPath + "/player3.oof";
        FileStream      stream    = new FileStream(path, FileMode.Create);

        Saving data = new Saving(player);

        formatter.Serialize(stream, data);
        stream.Close();
    }
Example #2
0
 public Saving(levelcount player)
 {
     scorevalue = levelcount.scorevalue;
 }