GameStateManagement.GameScreen.LoadContent C# (CSharp) Method

LoadContent() public method

Load graphics content for the screen.
public LoadContent ( ) : void
return void
        public virtual void LoadContent()
        {
        }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Adds a new screen to the screen manager.
        /// </summary>
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;
            screen.IsExiting     = false;

            // If we have a graphics device, tell the screen to load content.
            if (isInitialized)
            {
                screen.LoadContent();
            }

            screens.Add(screen);
        }
All Usage Examples Of GameStateManagement.GameScreen::LoadContent