public static void Init(IResourceLoader resourceLoader, IHotUpdatePath pather,
                                IOriginAssetBundleUtil originConstData, IAssetConstUtil assetConstUtil)
        {
            Assert.IsNotNull(resourceLoader);
            _resourceLoader = resourceLoader;
//            Debug.Log("初始化");
            _resourceLoader.Init(pather, originConstData, assetConstUtil);
        }
Esempio n. 2
0
        public void Init()
        {
            if (isInit)
            {
                return;
            }
            isInit = true;
#if UNITY_EDITOR
#if RES_AB
            //Editor模式下希望Bundle加载
            resLoader = new BundleLoader();
#else
            //Editor模式下希望Resources加载
            resLoader = new AssetDatabaseLoader();
#endif
#else
            //非Editor模式下
            //用Bundle加载
            resLoader = new BundleLoader();
#endif
            resLoader.Init();
        }