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>(); }
public void Play(Musiques m) { try { MediaPlayer.Play(_musiques[m]); MediaPlayer.IsRepeating = true; } catch (Exception e) { EugLib.FileStream.toStdOut(e.ToString()); } }
public void LoadContent(ContentManager content, Musiques m, string assetName) { _musiques.Add(m, content.Load<Song>(assetName)); }