/// <summary>
        /// 初始化
        /// </summary>
        /// <param name="loadType"></param>
        /// <param name="useCache"></param>
        public static void Init(AssetsLoadType loadType, bool useCache)
        {
            if (s_isInit)
            {
                return;
            }

            s_isInit = true;

            if (loadType == AssetsLoadType.AssetBundle)
            {
                useCache = true;
            }
            if (!Application.isPlaying)
            {
                useCache = false;
            }
            UseCache = useCache;
            ResourcesManager.m_loadType = loadType;
            ReleaseAll();
            //GameInfoCollecter.AddAppInfoValue("AssetsLoadType", loadType);

            loadAssetsController = new AssetsLoadController(loadType, useCache);
            //Debug.LogError("ResourceManager初始化 AssetsLoadType:" + loadType + " useCache:" + useCache + loadAssetsController==null);
        }
Example #2
0
 public ResourcesLoader(AssetsLoadController loadAssetsController) : base(loadAssetsController)
 {
 }
Example #3
0
 public LoaderBase(AssetsLoadController assetsLoadController)
 {
     this.m_assetsLoadController = assetsLoadController;
 }