示例#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);
     battleScreen.LoadContent(Content);
     world.LoadContent(Content);
 }
示例#2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            var content = new Content(Content, GraphicsDevice);

            battleScreen.LoadContent(content, GraphicsDevice);
            startScreen.LoadContent(content, GraphicsDevice);
            gameOverScreen.LoadContent(content, GraphicsDevice);
            manageTeamScreen.LoadContent(content, GraphicsDevice);
            manageCharacterScreen.LoadContent(content, GraphicsDevice);

            ContentLoaded?.Invoke();
        }