FarseerPhysics.ScreenSystem.GameScreen.ExitScreen C# (CSharp) Метод

ExitScreen() публичный Метод

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
Результат void
        public void ExitScreen()
        {
            TxtDebug.Text = "";
            if (TransitionOffTime == TimeSpan.Zero)
            {
                // If the screen has a zero transition time, remove it immediately.
                ScreenManager.RemoveScreen(this);
            }
            else
            {
                // Otherwise flag that it should transition off and then exit.
                IsExiting = true;
            }
        }