Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public IEnumerator CreateRoleIEnumerator(OnLoadBundleFinish onLoadBundleFinish)
 {
     yield return(AssetHelper.DownLoadAssetBundle(BundleConst.RoleBundleName, onLoadBundleFinish));
 }
Ejemplo n.º 3
0
 public static void RunDownLoadBundle(string bundleName, OnLoadBundleFinish onLoadBundleFinish)
 {
     MonoInst.RunConrotine(DownLoadAssetBundle(bundleName, onLoadBundleFinish));
 }