Beispiel #1
0
 //---------------------------------------------------------------------
 /// <summary>
 /// Draws the current GameState.
 /// </summary>
 /// <param name="_time"></param>
 public override void Draw(Microsoft.Xna.Framework.GameTime _time)
 {
     if (mbExit)
     {
         CurrentState.DrawFadeOut();
     }
     else
     if (NextState != null)
     {
         if (CurrentState != null)
         {
             CurrentState.DrawFadeOut();
         }
         else
         {
             NextState.DrawFadeIn();
         }
     }
     else
     {
         CurrentState.Draw();
     }
 }