/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { Serv.Initialize(m_GraphicsDM, this); base.Initialize(); m_Player.BackgroundReference(m_Background); m_Enemy.BackgroundReference(m_Background); m_Enemy.PlayerReference(m_Player); Serv.AddUpdateableComponent(m_Background); Components.Add(m_Enemy); Serv.AddBeginable(m_Background); Serv.AddBeginable(m_Enemy); }