Example #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            //Load Screen Content
            ScreenService screenManager = Services.GetService <ScreenService>();

            screenManager.LoadContent(Content);
            screenManager.GraphicsDevice = GraphicsDevice;
            screenManager.SpriteBatch    = _spriteBatch;
        }