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

            return _instance;
        }
예제 #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();
 }
예제 #3
0
 public static void ResetInstance()
 {
     _instance = null;
 }