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