Пример #1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     #if DEBUG
     _debugInfo = new DebugInfo();
     _debugInfo.LoadContent(Services);
     #endif
 }
Пример #2
0
 /// <summary>
 /// UnloadContent will be called once per game and is the place to unload
 /// all content.
 /// </summary>
 protected override void UnloadContent()
 {
     #if DEBUG
     if (_debugInfo != null)
     {
         _debugInfo.Dispose();
         _debugInfo = null;
     }
     #endif
 }