Exemple #1
0
        public static Highscore GetInstance()
        {
            if (_instance == null)
                _instance = new Highscore();

            return _instance;
        }
Exemple #2
0
 public void SerializeObject(string fileName, Highscore highscore)
 {
     Stream stream = File.Open(fileName, FileMode.Create);
     BinaryFormatter bFormatter = new BinaryFormatter();
     bFormatter.Serialize(stream, highscore);
     stream.Close();
 }
Exemple #3
0
 public static void ResetInstance()
 {
     _instance = null;
 }