コード例 #1
0
        /// <summary>
        /// Initialize the static AudioManager functionality.
        /// </summary>
        /// <param name="game">The game that this component will be attached to.</param>
        public static void Initialize(Game game)
        {
            audioManager = new AudioManager(game);

            game.Components.Add(audioManager);
        }
コード例 #2
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     AudioManager.LoadSounds();
     HighScoreScreen.LoadHighscores();
     base.LoadContent();
 }