/// <summary> /// 加载bundle /// </summary> /// <param name="bundleName"> Load </param> /// <param name="loadProgress"></param> /// <param name="callback"></param> public void LoadAsset(string bundleName, LoadProgress loadProgress, LoadAssetBundleCallBack callback) { if (allAssets.ContainsKey(bundleName)) { // sceneone/load.ld string name = allAssets[bundleName]; abManager.LoadAssetBundle(name, loadProgress, callback); } else { Debug.LogWarning("Dont contains the bundle = " + bundleName); } }
public void LoadAsset(string bundleName, LoaderProgress progress, LoadAssetBundleCallBack callBack) { if (allAsset.ContainsKey(bundleName)) { string tmpValue = allAsset[bundleName]; abManager.LoadAssetBundle(tmpValue, progress, callBack); } else { Debug.Log("Dont contain the bundle == " + bundleName); } }
public void LoadAsset(string bundleName, LoaderProgrecess progress, LoadAssetBundleCallBack callBack) { if (allAsset.ContainsKey(bundleName)) { string tmpValue = allAsset[bundleName]; abManager.LoadAssetBundle(tmpValue, progress, callBack); } else { Debug.LogError("没有" + bundleName + "的资源"); } }
public void LoadAsset(string bundleName, LoaderProgress progress, LoadAssetBundleCallBack callBack) { if (mAllAssetDict.ContainsKey(bundleName)) { string bundlePath = mAllAssetDict[bundleName]; mABManager.LoadAssetBundle(bundlePath, progress, callBack); } else { Debug.LogWarning("没有包含Bundle名:" + bundleName); } }
/// <summary> /// /// </summary> /// <param name="bundleName"> Load </param> /// <param name="progress"></param> /// <param name="callBack"></param> public void LoadAsset(string bundleName, LoaderProgrecess progress, LoadAssetBundleCallBack callBack) { //scenceone/load.ld if (allAssets.ContainsKey(bundleName)) { string tmpValue = allAssets[bundleName]; Debug.Log("iab scenceManager ==" + tmpValue + "bundleName==" + bundleName); abManager.LoadAssetBundle(tmpValue, progress, callBack); } else { Debug.Log("Dont contain the bundle ==" + bundleName); } }