public static void Update(GameTime gameTime)
 {
     if (GameManager.GetLevel() == null)
     {
         if (PlayerProfile.getController(0) == null)
         {
             PlayerProfile.Update(gameTime, true);
             if (PlayerProfile.getController(0) != null)
             {
                 setMessage("Press A to search for connection");
             }
         }
         else
         {
             PlayerProfile.Update(gameTime, false);
             if (NetworkManager.networkSession == null)
             {
                 BasicController b = PlayerProfile.getController(0);
                 if (b.AButton())
                 {
                     setMessage("Attempting to Join...");
                     if (NetworkManager.JoinSession())
                     {
                         setMessage("Sucess");
                     }
                     else
                     {
                         setMessage("Failure to Connect");
                     }
                 }
             }
             else
             {
                 NetworkManager.Update(gameTime);
             }
         }
     }
     else
     {
         if (!PlayerProfile.getController(0).BackButton())
         {
             GameManager.Update(gameTime);
             FPSCounter.Update(gameTime);
         }
         else
         {
             GameManager.ClearLevel();
         }
     }
 }
        public static void Update(GameTime gameTime)
        {
            if (performanceDisplay != PerformanceDisplay.None)
            {
                elapsedTime += gameTime.ElapsedGameTime;

                if (elapsedTime > TimeSpan.FromSeconds(1))
                {
                    elapsedTime -= TimeSpan.FromSeconds(1);
                    frameRate    = frameCounter;
                    frameCounter = 0;
                }
            }
#if WINDOWS
            if (KeyboardManager.KeyJustPressed(Keys.F1))
#endif
#if XBOX
            if (PlayerProfile.getController(0) != null && PlayerProfile.getController(0).StartButton() && !PlayerProfile.getController(0).StartButton())
#endif
            performanceDisplay = performanceDisplay == PerformanceDisplay.Extended ? PerformanceDisplay.None : performanceDisplay + 1;
        }