public static IEnumerator DownLoadAssetBundle(string bundleName, OnLoadBundleFinish onLoadBundleFinish) { ResourceAPI resourceAPI = SimpleFactory.CreateResourceAPI(); DownLoadEventAPI downLoadEventAPI = SimpleFactory.CreateDownLoadEventAPI(); downLoadEventAPI.OnLoadBundleDelegate += onLoadBundleFinish; yield return(resourceAPI.LoadAssetBundle(bundleName, downLoadEventAPI)); }
public IEnumerator CreateRoleIEnumerator(OnLoadBundleFinish onLoadBundleFinish) { yield return(AssetHelper.DownLoadAssetBundle(BundleConst.RoleBundleName, onLoadBundleFinish)); }
public static void RunDownLoadBundle(string bundleName, OnLoadBundleFinish onLoadBundleFinish) { MonoInst.RunConrotine(DownLoadAssetBundle(bundleName, onLoadBundleFinish)); }