protected override void UnloadContent() { if (_xnalistener != null) { _xnalistener.UnloadContent(); } base.UnloadContent(); }
/// <summary> /// 内含XNA资源卸载时调用的LGame API /// </summary> protected override void UnloadContent() { this.m_init.UnloadApp(); if (useXNAListener) { xna_listener.UnloadContent(this); } if (Content != null) { Content.Unload(); } }
/// <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(); } }