public LoadedAssetBundleAsyncOperation(LoadedAssetBundle assetBundle) { loadedAssetBundle = assetBundle; loadedAssetBundle.isAsyncLoading = true; loadedAssetBundle.isLoaded = false; mAssetBundleCreateRequest = AssetBundleManager.LoadAssetBundleFromFileAsync(assetBundle.assetBundleName); }
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); }