示例#1
0
        /// <summary>
        /// Updates the loading screen.
        /// </summary>
        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            // If all other screens have transitioned off, we can actually start performing the load.
            if (otherScreensAreGone)
            {
                ScreenManager.RemoveScreen(this);

                loadNextScreen(this, EventArgs.Empty);
            }
        }