コード例 #1
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);
    }
コード例 #2
0
    public void Initialize(string bundle, LoaderProgress progress)
    {
        IsLoadFinish = false;

        mBundleName = bundle;

        mLoadProgress = progress;

        mAssetLoader = new IABLoader(progress, BundleLoadFinish);
    }
コード例 #3
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);
    }
コード例 #4
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);
    }
コード例 #5
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);
    }
コード例 #6
0
    /// <summary>
    /// 初始化(创建IABLoader)
    /// </summary>
    /// <param name="bundleName"></param>
    /// <param name="progress"></param>
    public void Initial(string bundleName, LoadFinish finish, LoadProgrecess progress)
    {
        IsLoadFinish      = false;
        this.bundleName   = bundleName;
        this.loadProgerss = progress;

        loadFinish = BundleLoadFinish;
        if (finish != null)
        {
            loadFinish += finish;
        }
        //创建包的加载对象
        abLoader = new IABLoader(bundleName, loadFinish, progress);
    }
コード例 #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);
    }
コード例 #8
0
    public void Initial(string bundle, LoaderProgrecess progress)
    {
        IsLoadFinish = false;

        theBundleName = bundle;

        loaderProgress = progress;

        assetLoader = new IABLoader(progress, BundleLoadFinish);


        //yujie fixed

        assetLoader.SetBundleName(bundle);

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

        assetLoader.LoadResources(bundlePath);
    }
コード例 #9
0
	public void Initialize(string bundle,LoaderProgress progress)
	{
		IsLoadFinish = false;

		mBundleName = bundle;

		mLoadProgress = progress;

		mAssetLoader = new IABLoader (progress,BundleLoadFinish);
	}