コード例 #1
0
ファイル: Loon.cs プロジェクト: zhangxin8105/LGame
 protected override void UnloadContent()
 {
     if (_xnalistener != null)
     {
         _xnalistener.UnloadContent();
     }
     base.UnloadContent();
 }
コード例 #2
0
 /// <summary>
 /// 内含XNA资源卸载时调用的LGame API
 /// </summary>
 protected override void UnloadContent()
 {
     this.m_init.UnloadApp();
     if (useXNAListener)
     {
         xna_listener.UnloadContent(this);
     }
     if (Content != null)
     {
         Content.Unload();
     }
 }
コード例 #3
0
 /// <summary>
 /// 调用XNA资源卸载函数(禁止重载)
 /// </summary>
 protected sealed override void UnloadContent()
 {
     if (process != null)
     {
         process.End();
     }
     if (useXNAListener)
     {
         xna_listener.UnloadContent(this);
     }
     XNA_UnloadContent();
     if (content != null)
     {
         content.Unload();
     }
 }