public override void Init() { base.Init(); localLoader = new LocalResourcesLoader(this); bundleLoader = new BundleResourcesLoader(this); gameObject.hideFlags |= HideFlags.HideAndDontSave; }
/// <summary> /// 显示的初始化 /// </summary> public void Init() { // 资源加载 if (LoggerQ.GetResourceLoadType() == ResourceLoadType.AssetBundle) { // 资源更新模块 assetBundleResUpdate = new AssetBundleResUpdate(); assetBundleResUpdate.Init(); // 资源加载模块 resourcesLoad = new ResourcesAssetBundleLoader(); } else { resourcesLoad = new ResourcesEditorLoader(); // 默认使用Editor } resourcesLoad.Init(); #if UNITY_EDITOR if (true == resourcesLoad is ResourcesAssetBundleLoader) { this.Error("目前在EDITOR环境下使用AssetBundle进行测试,资源全部来自于资源服务器!!!"); } #endif }