public IABManifestLoader()
 {
     assetManifest  = null;
     manifestLoader = null;
     isLoadFinish   = false;
     manifestPath   = IPathTools.GetWWWAssetBundlePath() + "/" + IPathTools.GetPlatFormFolderName(Application.platform);
 }
Пример #2
0
    public void Initial(string bundleName, LoaderProgrecess progress)
    {
        IsLoadFinish = false;

        theBundleName = bundleName;

        loaderProgrecess = progress;
        assetLoader      = new IABLoader(IPathTools.GetWWWAssetBundlePath() + "/" + theBundleName, IPathTools.GetAssetBundlePath() + "/" + theBundleName, theBundleName, progress, BundleLoadFinish);
    }
Пример #3
0
    public IABManifestLoader()
    {
        manifestBundle = null;
        assetManifest  = null;

        isLoadFish = false;

        //fixed
        //file:///c:/user/lenovo/Desktop/Game/Assets/StreamingAssets/Windows/Windows(是windows的manifest文件)
        ManifestPath = IPathTools.GetWWWAssetBundlePath() + "/" + IPathTools.GetPlatformFolderName(Application.platform);
    }
    public void Initial(string bundle, LoaderProgress progress)
    {
        bundleName    = bundle;
        IsLoadFinish  = false;
        loaderProcess = progress;
        assetLoader   = new IABLoader(progress, BundleLoadFinish);
        assetLoader.SetBundleName(bundle);
        string bundlePath = IPathTools.GetWWWAssetBundlePath() + "/" + bundle;

        assetLoader.LoadResources(bundlePath);
    }
Пример #5
0
    public void Initial(string bundlePath, LoaderProgress progress)
    {
        mIsLoadFinish   = false;
        mbundlePath     = bundlePath;
        mLoaderProgress = progress;
        mABLoader       = new IABLoader(progress, BundleLoadFinish);
        mABLoader.SetBundleName(bundlePath);
        string fullPathWWW  = IPathTools.GetWWWAssetBundlePath() + "/" + bundlePath;
        string fullPathFile = IPathTools.GetAssetBundlePath() + "/" + bundlePath;

        mABLoader.LoadResources(fullPathWWW, fullPathFile);
    }
    public void Initialize(string bundleName, LoadProgress loadProgress)
    {
        this.loadProgress = loadProgress;
        this.bundleName   = bundleName;
        isLoadFinish      = false;

        assetLoader = new IABLoader(loadProgress, OnBundleLoadFinish);
        // 设置名字和路径
        assetLoader.SetBundleName(bundleName);
        string bundlePath = Path.Combine(IPathTools.GetWWWAssetBundlePath(), bundleName);

        assetLoader.LoadResources(bundlePath);
    }
Пример #7
0
    public void Inital(string bundlename, LoadProgess progess)
    {
        isLoadFished  = false;
        theBundleName = bundlename;
        loadProgess   = progess;

        iABLoader = new IABLoader(progess, BundleLoadFinish);


        iABLoader.SetBundleName(bundlename);

        string bundlePath = IPathTools.GetWWWAssetBundlePath() + "/" + bundlename;

        iABLoader.LoadResources(bundlePath);
    }