Exemplo n.º 1
0
    public static void saveInfo(scoreNumber score)
    {
        BinaryFormatter binary = new BinaryFormatter();
        string          path   = Application.persistentDataPath + "/mazeSave3.bblaze";

        FileStream stream = new FileStream(path, FileMode.Create);

        playersData playersData = new playersData(score);

        binary.Serialize(stream, playersData);
        stream.Close();
    }
Exemplo n.º 2
0
 public playersData(scoreNumber score)
 {
     highScore = score.highestScore;
 }