public void UnLoadAll() { if (m_AssetConfigFile != null) { m_AssetConfigFile.UnLoad(); m_AssetConfigFile = null; } m_Configs = null; _instance = null; }
public void Load() { m_AssetConfigFile = XMLHelper.DeSerializerObjectResourceLoad(strAssetManageConfigName, typeof(AssetManageConfigFile)) as AssetManageConfigFile; if (m_AssetConfigFile != null) { m_AssetConfigFile.ToLower(); } if (m_Configs == null) { m_Configs = new AssetManageInfo[(int)ELoadType.Max]; } if (m_Configs != null && m_AssetConfigFile != null) { for (int i = 0; i < m_AssetConfigFile.infos.Count; ++i) { m_Configs[(int)m_AssetConfigFile.infos[i].loadType] = m_AssetConfigFile.infos[i]; } m_AssetConfigFile.UnLoad(); m_AssetConfigFile = null; } }