コード例 #1
0
ファイル: WobbleGame.cs プロジェクト: staravia/Wobble
 /// <summary>
 ///     UnloadContent will be called once per game and is the place to unload
 ///     game-specific content.
 /// </summary>
 protected override void UnloadContent()
 {
     WobbleAssets.Dispose();
     WindowManager.UnHookEvents();
     AudioManager.Dispose();
     DiscordManager.Dispose();
     BitmapFontFactory.Dispose();
 }
コード例 #2
0
ファイル: WobbleGame.cs プロジェクト: staravia/Wobble
 /// <summary>
 ///     LoadContent will be called once per game and is the place to load
 ///     all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     SpriteBatch = new SpriteBatch(GraphicsDevice);
     WobbleAssets.Load();
 }