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