Пример #1
0
 public void Dispose()
 {
     m_coroutine.Dispose();
     m_coroutine = null;
     m_http.Dispose();
     m_http     = null;
     m_instance = null;
 }
Пример #2
0
        private void DisposeAll()
        {
            if (m_coroutine != null)
            {
                m_coroutine.Dispose();
            }
            if (m_invoke != null)
            {
                m_invoke.Dispose();
            }
            if (m_debug != null)
            {
                m_debug.Dispose();
            }
            if (m_component != null)
            {
                m_component.Dispose();
            }
            if (m_sourceUpdate != null)
            {
                m_sourceUpdate.Dispose();
            }
#if LUA
            if (m_luaManager != null)
            {
                m_luaManager.Dispose();
            }
#endif

#if UGUI
            if (m_uiManager != null)
            {
                m_uiManager.Dispose();
            }
#endif
#if FAIRYGUI
            if (m_uiManager != null)
            {
                m_uiManager.Dispose();
            }
#endif
            if (m_audioManager != null)
            {
                m_audioManager.Dispose();
            }
            if (m_controlData != null)
            {
                m_controlData.Dispose();
            }
            if (m_cacheData != null)
            {
                m_cacheData.Dispose();
            }
            if (m_configData != null)
            {
                m_configData.Dispose();
            }
            if (m_loom != null)
            {
                m_loom.Dispose();
            }
            if (m_loop != null)
            {
                m_loop.Dispose();
            }
            if (m_http != null)
            {
                m_http.Dispose();
            }
            if (m_network != null)
            {
                m_network.Dispose();
            }
            if (m_resources != null)
            {
                m_resources.Dispose();
            }
            if (m_bundleManager != null)
            {
                m_bundleManager.Dispose();
            }
            if (m_objectManager != null)
            {
                m_objectManager.Dispose();
            }
        }