ExitScreen() public method

Tells the screen to go away. Unlike ScreenManager.RemoveScreen, which instantly kills the screen, this method respects the transition timings and will give the screen a chance to gradually transition off.
public ExitScreen ( ) : void
return void
示例#1
0
        private void DebutAnimation(float time)
        {
            if (_timer < _timer_max)
            {
                _timer += time;
            }
            else if (_timer > _timer_max)
            {
                foreach (GameScreen screen in screensToLoad)
                {
                    if (screen != null)
                    {
                        ScreenManager.AddScreen(screen);
                    }
                }
                // Tell all the current screens to transition off.
                screenToErrase.ExitScreen();

                transitionDone = true;
            }
        }