GameStateManagement.GameScreen.UnloadContent C# (CSharp) Method

UnloadContent() public method

Unload content for the screen.
public UnloadContent ( ) : void
return void
        public virtual void UnloadContent()
        {
        }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Removes a screen from the screen manager. You should normally
        /// use GameScreen.ExitScreen instead of calling this directly, so
        /// the screen can gradually transition off rather than just being
        /// instantly removed
        /// </summary>
        public void RemoveScreen(GameScreen screen)
        {
            // If we have a graphics device, tell the screen to unload content
            if (isInitialized)
            {
                screen.UnloadContent();
            }

            // Remove the screens
            screens.Remove(screen);
            screensToUpdate.Remove(screen);
        }
All Usage Examples Of GameStateManagement.GameScreen::UnloadContent