ArcadeRPG.GameOver.loadContent C# (CSharp) Метод

loadContent() публичный Метод

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager contman ) : void
contman Microsoft.Xna.Framework.Content.ContentManager
Результат void
        public void loadContent(ContentManager contman)
        {
            gameoverpic = contman.Load<Texture2D>("GameOver");
            gameoverpos = new Vector2(0, 0);
        }

Usage 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()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            //***********************************LOADING MENUS***************************************//
            intro.loadContent(Content);
            timex.loadContent(Content);
            instruct.loadContent(Content);
            instruct2.loadContent(Content);
            gameover.loadContent(Content);
            //***************************************************************************************//

            game_engine.LoadContent(Content);
        }
All Usage Examples Of ArcadeRPG.GameOver::loadContent