Beispiel #1
0
        public ResourceManager()
        {
            m_ResourceMode           = ResourceMode.Unspecified;
            m_TaskPool               = new TaskPool <ResourceLoaderTask>();
            s_ResourceNames          = new HashSet <string>();
            s_AssetNames             = new HashSet <string>();
            m_ReadWriteResourceInfos = new SortedDictionary <string, ReadWriteResourceInfo>();
            m_AssetPool              = new AssetPool <AssetInfo>();
            m_AssetBundlePool        = new AssetPool <AssetBundleInfo>();
            m_UpdateFileCache        = null;
            m_DecompressCache        = null;

            ResourceUpdateStartEvent   = null;
            ResourceUpdateChangedEvent = null;
            ResourceUpdateSuccessEvent = null;
            ResourceUpdateFailureEvent = null;
        }
Beispiel #2
0
 /// <summary>
 /// 设置资源池
 /// </summary>
 /// <param name="assetPool"></param>
 /// <param name="assetBundlePool"></param>
 public void SetAssetPool(AssetPool <AssetInfo> assetPool, AssetPool <AssetBundleInfo> assetBundlePool)
 {
     m_AssetPool       = assetPool;
     m_AssetBundlePool = assetBundlePool;
 }