public Initialize ( string bundle, LoaderProgress progress ) : void | ||
bundle | string | |
progress | LoaderProgress | |
Результат | void |
public IEnumerator LoadABDependences(string bundleName, string refName, LoaderProgress progress) { if (!mLoadHelper.ContainsKey(bundleName)) { IABRelationMgr loader = new IABRelationMgr(); loader.Initialize(bundleName, progress); if (refName != null) { loader.AddReference(refName); } mLoadHelper.Add(bundleName, loader); yield return(LoadABs(bundleName)); } else { if (refName != null) { IABRelationMgr loader = mLoadHelper[bundleName]; loader.AddReference(bundleName); } } }
public void LoadAB(string bundleName, LoaderProgress progress, LoadABCallBack callback) { if (!mLoadHelper.ContainsKey(bundleName)) { IABRelationMgr loader = new IABRelationMgr(); loader.Initialize(bundleName, progress); mLoadHelper.Add(bundleName, loader); callback(mSceneName, bundleName); } else { Debug.Log("IABMgr contain bundle name ==" + bundleName); } }
public IEnumerator LoadABDependences(string bundleName,string refName,LoaderProgress progress) { if(!mLoadHelper.ContainsKey(bundleName)) { IABRelationMgr loader = new IABRelationMgr(); loader.Initialize(bundleName,progress); if (refName != null) { loader.AddReference(refName); } mLoadHelper.Add(bundleName,loader); yield return LoadABs(bundleName); } else { if (refName != null) { IABRelationMgr loader = mLoadHelper[bundleName]; loader.AddReference(bundleName); } } }
public void LoadAB(string bundleName,LoaderProgress progress,LoadABCallBack callback) { if (!mLoadHelper.ContainsKey (bundleName)) { IABRelationMgr loader = new IABRelationMgr (); loader.Initialize (bundleName, progress); mLoadHelper.Add (bundleName, loader); callback (mSceneName, bundleName); } else { Debug.Log ("IABMgr contain bundle name ==" + bundleName); } }