private void createGameEntities() { m_CollisionsManager = new CollisionsManager(this); m_InputManager = new InputManager(this); m_ScreensMananger = new ScreensMananger(this); m_SoundManager = new XactSoundManager(this, Enum.GetNames(typeof(eGameSounds))); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { base.LoadContent(); Pool = new Pool <Particle>(); if (Configuration.Audio.IsSoundEnabled) { SoundManager = new XactSoundManager("Content//Audio//Plan2015.xgs", "Content//Audio//Plan2015.xwb", "Content//Audio//Plan2015.xsb"); } else { SoundManager = new NoSoundManager(); } SceneManager.AddScene("Main", MainScene = new MainScene(this)); MainScene.LoadContent(); MainScene.Initialize(); SceneManager.ChangeScene("Main"); }