コード例 #1
0
 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
ファイル: IABManifestLoader.cs プロジェクト: yutongzhu/UtoVR
    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);
    }
コード例 #4
0
    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);
    }
コード例 #6
0
    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);
    }