コード例 #1
0
 public LoadedAssetBundleAsyncOperation(LoadedAssetBundle assetBundle)
 {
     loadedAssetBundle = assetBundle;
     loadedAssetBundle.isAsyncLoading = true;
     loadedAssetBundle.isLoaded       = false;
     mAssetBundleCreateRequest        = AssetBundleManager.LoadAssetBundleFromFileAsync(assetBundle.assetBundleName);
 }
コード例 #2
0
 public LoadedAssetBundleAsyncOperation(LoadedAssetBundle assetBundle, string needLoadAssetName, Action <LoadedAssetBundle> loadedAssetBundleAction)
 {
     mLoadedAssetBundleAction         = loadedAssetBundleAction;
     loadedAssetBundle                = assetBundle;
     loadedAssetBundle.isAsyncLoading = true;
     loadedAssetBundle.isLoaded       = false;
     mNeedLoadAssetName               = needLoadAssetName;
     mAssetBundleCreateRequest        = AssetBundleManager.LoadAssetBundleFromFileAsync(assetBundle.assetBundleName);
 }