예제 #1
0
 public static DAO GetInstance()
 {
     if (_me == null)
     {
         _me = new DAO();
     }
     return _me;
 }
예제 #2
0
 // HighScoreList _highScoreList = new HighScoreList("MyScores");
 public WinScreen()
 {
     _preloader = SpriteLoader.GetInstance();
     _sceneManager = SceneManager.GetInstance();
       //  _cursor = _preloader.Load("cursor");
     _scenery = _preloader.Load("scene");
     _buttons.Add(new Button(new Vector2(150, 500), SceneManager.Scenes.MENU, "Back",true));
     _dao = DAO.GetInstance();
     _dao.AddHighscore(HUD._score);
     SoundEffect _effect =  _preloader.LoadEffect("win");
     if (Menu._playingMusic == true)
     {
         _effect.Play();
         _preloader.StopMusic();
     }
 }