public IABLoader(LoaderProgress tmpLoaderProgress, LoadFinish tmpLoadFinish) { bundleName = ""; commonBundlePath = ""; commResLoaderProgress = 0; loadProgress = tmpLoaderProgress; loadFinish = tmpLoadFinish; abResLoader = null; }
public IABLoader(LoaderProgress loadProgress,LoadFinish loadFinish) { mCommonBundlePath = ""; mBundleName = ""; mCommonResLoadProgress = 0; mLoadFinish = loadFinish; mLoadProgress = loadProgress; }
public IABLoader(LoaderProgrocess loadDelegate, LoadFinish tmploadFinish) { // Debug.Log("LoaderProgrocess === LoaderProgrocess"); loadPorgress = new LoaderProgrocess(loadDelegate); loadPorgress = loadDelegate; this.loadFinish = tmploadFinish; }
public ABRelationManager(string bundleName, LoadFinish loadFinish) { dependenceList = new List <string>(); referenceList = new List <string>(); this.bundleName = bundleName; this.loadFinish = loadFinish; abLoader = new ABLoader(bundleName, loadFinish); }
public IABLoader(LoaderProgress loadProgress, LoadFinish loadFinish) { mCommonBundlePath = ""; mBundleName = ""; mCommonResLoadProgress = 0; mLoadFinish = loadFinish; mLoadProgress = loadProgress; }
public IABLoader(LoaderProgrecess loaderProgrecess, LoadFinish loadFinish) { commonBundlePath = ""; bundleName = ""; commResLoaderProcess = 0; this.loaderProgress = loaderProgrecess; this.loadFinish = loadFinish; abResLoader = null; }
public IABLoader(LoaderProgress loaderProgress, LoadFinish loadFinish) { mBundleName = ""; mBundleWWWPath = ""; mLoadProcess = 0; LoadProgressEvent = loaderProgress; LoadFinishEvent = loadFinish; mABResLoader = null; }
/// <summary> /// /// </summary> /// <param name="tmpProgress">加载时每帧回调</param> /// <param name="tmpFinish">完成时回调</param> public IABLoader(LoadProgrecess tmpProgress = null, LoadFinish tmpFinish = null) { this.bundleName = ""; this.commonBundlePath = ""; this.commonResLoaderProgress = 0; this.abResLoader = null; this.loadProgrecess = tmpProgress; this.loadFinish = tmpFinish; }
/// <summary> /// /// </summary> /// <param name="bundleName">ab标签</param> /// <param name="tmpFinish">完成时回调</param> /// <param name="tmpProgress">加载时每帧回调</param> public IABLoader(string bundleName, LoadFinish tmpFinish = null, LoadProgrecess tmpProgress = null) { this.bundleName = bundleName; this.commonBundlePath = IPathTool.GetWWWAssetBundlePath() + "/" + bundleName; this.commonResLoaderProgress = 0; this.abResLoader = null; this.loadProgrecess = tmpProgress; this.loadFinish = tmpFinish; }
public IABLoader(string _commomBundlePath, string _commomBundleFilePath, string _bundleName, LoaderProgrecess loadProgress = null, LoadFinish loadFinish = null) { bundleName = _bundleName; commomBundlePath = _commomBundlePath; commomBundleFilePath = _commomBundleFilePath; commonResourceLoaderProcess = 0; this.loadProgress = loadProgress; this.loadFinish = loadFinish; abloader = null; }
public IABLoader(LoadProgress loadProgress, LoadFinish loadFinish) { bundleName = ""; commonBundlePath = ""; commonResLoaderProcess = 0; loadProgress = null; loadFinish = null; abResLoader = null; this.loadProgress = loadProgress; this.loadFinish = loadFinish; }
public ABLoader(LoaderProgrecess lp, LoadFinish lf) { commonBundlePath = ""; bundleName = ""; commonResLoaderProcess = 0; LoaderProgressing = lp; LoadFinished = lf; abResloader = null; }
/// <summary> /// 初始化(创建IABLoader) /// </summary> /// <param name="bundleName"></param> /// <param name="progress"></param> public void Initial(string bundleName, LoadFinish finish, LoadProgrecess progress) { IsLoadFinish = false; this.bundleName = bundleName; this.loadProgerss = progress; loadFinish = BundleLoadFinish; if (finish != null) { loadFinish += finish; } //创建包的加载对象 abLoader = new IABLoader(bundleName, loadFinish, progress); }
/// <summary> /// 释放资源 /// </summary> public void commonDispose() { //Debug.LogError("assetbundle =="+ bundleName); if (commonRes != null) { commonRes.Dispose(); commonRes = null; bundleName = null; loadFinish = null; loadPorgress = null; } }
public void AsyncLoadAssetBundle(string bundleName, LoadFinish loadFinish, LoadAssetBundleCallBack callBack) { if (abDict.ContainsKey(bundleName)) { if (loadFinish != null) { loadFinish(bundleName); } return; } ABRelationManager abLoader = new ABRelationManager(bundleName, loadFinish); abDict.Add(bundleName, abLoader); if (callBack != null) { callBack(sceneName, bundleName); } }
//加载资源 public IEnumerator LoadAssetBundle(string path, LoadFinish loadFinish = null) { WWW w = new WWW(path); yield return(w); if (!string.IsNullOrEmpty(w.error)) { Debug.LogWarning("加载 bundle 失败" + w.error); yield break; } AssetBundle ab = w.assetBundle; if (loadObj.ContainsKey(ab.name) == false) { loadObj.Add(ab.name, new AssetObj(ab.LoadAllAssets())); } if (loadFinish != null) { loadFinish(); } w.Dispose(); }
public void AsyncLoadAssetBundle(string sceneName, string bundleName, LoadFinish loadFinish, LoadAssetBundleCallBack callBack) { //检测字典 CheckDict(sceneName, bundleName); sceneDict[sceneName].AsyncLoadAssetBundle(fullNameDict[bundleName], loadFinish, callBack); }
/// <summary> /// 包加载完成时回调 /// </summary> /// <param name="bundleName"></param> public void OnLoadFinish(LoadFinish tmpFinish) { this.loadFinish = tmpFinish; }
//异步加载 public void AsyncLoadAssetBundle(string sceneName, string bundleName, LoadFinish loadFinish) { sceneManager.AsyncLoadAssetBundle(sceneName, bundleName, loadFinish, LoadAssetBundleCallBack); }
/// <summary> /// /// </summary> /// <param name="bundleName"></param> /// <param name="progress"></param> public IABRelationManager(string bundleName, LoadFinish finish = null, LoadProgrecess progress = null) { dependenceBundle = new List <string>(); referBundle = new List <string>(); Initial(bundleName, finish, progress); }
public IEnumerator AsyncLoadAssetBundleDependences(string bundleName, string referName, LoadFinish loadFinish) { if (abDict.ContainsKey(bundleName)) { abDict[bundleName].AddReference(referName); } else { ABRelationManager abLoader = new ABRelationManager(bundleName, loadFinish); abDict.Add(bundleName, abLoader); abLoader.AddReference(referName); yield return(AsyncLoadAssetBundle(bundleName)); } }
public ABLoader(string bundleName, LoadFinish loadFinish) { this.loadFinish = loadFinish; this.bundleName = bundleName; }
static CheatMode() { _cheatStates = new Dictionary <Assembly, bool>(); LoadFinish.Subscribe((data) => OnSceneLoadFinished(data)); }
public CheckAssetData(LoadFinish loadFinish) { checkLoad = loadFinish; }