public Animation(Rectangle windowSize, Scene nextScene = Scene.MainMenu, Musiques musique = Musiques.None)
 {
     animation = new List<AnimPictures>();
     _windowSize = windowSize;
     _nextScene = nextScene;
     _music = musique;
     _textToShow = new List<int>();
 }
예제 #2
0
 public void Play(Musiques m)
 {
     try
     {
         MediaPlayer.Play(_musiques[m]);
         MediaPlayer.IsRepeating = true;
     }
     catch (Exception e)
     {
         EugLib.FileStream.toStdOut(e.ToString());
     }
 }
예제 #3
0
 public void LoadContent(ContentManager content, Musiques m, string assetName)
 {
     _musiques.Add(m, content.Load<Song>(assetName));
 }