コード例 #1
0
 public IABLoader(LoaderProgress tmpLoaderProgress, LoadFinish tmpLoadFinish)
 {
     bundleName            = "";
     commonBundlePath      = "";
     commResLoaderProgress = 0;
     loadProgress          = tmpLoaderProgress;
     loadFinish            = tmpLoadFinish;
     abResLoader           = null;
 }
コード例 #2
0
ファイル: IABLoader.cs プロジェクト: liangxiegame/QFramework
	public IABLoader(LoaderProgress loadProgress,LoadFinish loadFinish)
	{
		mCommonBundlePath = "";
		mBundleName = "";
		mCommonResLoadProgress = 0;
		mLoadFinish = loadFinish;

		mLoadProgress = loadProgress;
	}
コード例 #3
0
        public IABLoader(LoaderProgrocess loadDelegate, LoadFinish tmploadFinish)
        {
            // Debug.Log("LoaderProgrocess   === LoaderProgrocess");

            loadPorgress = new LoaderProgrocess(loadDelegate);
            loadPorgress = loadDelegate;

            this.loadFinish = tmploadFinish;
        }
コード例 #4
0
        public ABRelationManager(string bundleName, LoadFinish loadFinish)
        {
            dependenceList = new List <string>();
            referenceList  = new List <string>();

            this.bundleName = bundleName;
            this.loadFinish = loadFinish;
            abLoader        = new ABLoader(bundleName, loadFinish);
        }
コード例 #5
0
ファイル: IABLoader.cs プロジェクト: xxxhycl2010/QFramework
    public IABLoader(LoaderProgress loadProgress, LoadFinish loadFinish)
    {
        mCommonBundlePath      = "";
        mBundleName            = "";
        mCommonResLoadProgress = 0;
        mLoadFinish            = loadFinish;

        mLoadProgress = loadProgress;
    }
コード例 #6
0
 public IABLoader(LoaderProgrecess loaderProgrecess, LoadFinish loadFinish)
 {
     commonBundlePath     = "";
     bundleName           = "";
     commResLoaderProcess = 0;
     this.loaderProgress  = loaderProgrecess;
     this.loadFinish      = loadFinish;
     abResLoader          = null;
 }
コード例 #7
0
ファイル: IABLoader.cs プロジェクト: 756915370/Unity_Frame
 public IABLoader(LoaderProgress loaderProgress, LoadFinish loadFinish)
 {
     mBundleName       = "";
     mBundleWWWPath    = "";
     mLoadProcess      = 0;
     LoadProgressEvent = loaderProgress;
     LoadFinishEvent   = loadFinish;
     mABResLoader      = null;
 }
コード例 #8
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="tmpProgress">加载时每帧回调</param>
    /// <param name="tmpFinish">完成时回调</param>
    public IABLoader(LoadProgrecess tmpProgress = null, LoadFinish tmpFinish = null)
    {
        this.bundleName              = "";
        this.commonBundlePath        = "";
        this.commonResLoaderProgress = 0;
        this.abResLoader             = null;

        this.loadProgrecess = tmpProgress;
        this.loadFinish     = tmpFinish;
    }
コード例 #9
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="bundleName">ab标签</param>
    /// <param name="tmpFinish">完成时回调</param>
    /// <param name="tmpProgress">加载时每帧回调</param>
    public IABLoader(string bundleName, LoadFinish tmpFinish = null, LoadProgrecess tmpProgress = null)
    {
        this.bundleName              = bundleName;
        this.commonBundlePath        = IPathTool.GetWWWAssetBundlePath() + "/" + bundleName;
        this.commonResLoaderProgress = 0;
        this.abResLoader             = null;

        this.loadProgrecess = tmpProgress;
        this.loadFinish     = tmpFinish;
    }
コード例 #10
0
ファイル: IABLoader.cs プロジェクト: blongs/FameEvent
 public IABLoader(string _commomBundlePath, string _commomBundleFilePath, string _bundleName, LoaderProgrecess loadProgress = null, LoadFinish loadFinish = null)
 {
     bundleName                  = _bundleName;
     commomBundlePath            = _commomBundlePath;
     commomBundleFilePath        = _commomBundleFilePath;
     commonResourceLoaderProcess = 0;
     this.loadProgress           = loadProgress;
     this.loadFinish             = loadFinish;
     abloader = null;
 }
コード例 #11
0
 public IABLoader(LoadProgress loadProgress, LoadFinish loadFinish)
 {
     bundleName             = "";
     commonBundlePath       = "";
     commonResLoaderProcess = 0;
     loadProgress           = null;
     loadFinish             = null;
     abResLoader            = null;
     this.loadProgress      = loadProgress;
     this.loadFinish        = loadFinish;
 }
コード例 #12
0
ファイル: ABLoader.cs プロジェクト: LintonLiang/GameFarmework
    public ABLoader(LoaderProgrecess lp, LoadFinish lf)
    {
        commonBundlePath = "";
        bundleName       = "";

        commonResLoaderProcess = 0;

        LoaderProgressing = lp;
        LoadFinished      = lf;
        abResloader       = null;
    }
コード例 #13
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);
    }
コード例 #14
0
        /// <summary>
        /// 释放资源
        /// </summary>
        public void commonDispose()
        {
            //Debug.LogError("assetbundle =="+ bundleName);

            if (commonRes != null)
            {
                commonRes.Dispose();

                commonRes = null;

                bundleName = null;

                loadFinish = null;

                loadPorgress = null;
            }
        }
コード例 #15
0
ファイル: ABManager.cs プロジェクト: mengtest/U3DEventFrame
        public void AsyncLoadAssetBundle(string bundleName, LoadFinish loadFinish, LoadAssetBundleCallBack callBack)
        {
            if (abDict.ContainsKey(bundleName))
            {
                if (loadFinish != null)
                {
                    loadFinish(bundleName);
                }
                return;
            }
            ABRelationManager abLoader = new ABRelationManager(bundleName, loadFinish);

            abDict.Add(bundleName, abLoader);
            if (callBack != null)
            {
                callBack(sceneName, bundleName);
            }
        }
コード例 #16
0
        //加载资源
        public IEnumerator LoadAssetBundle(string path, LoadFinish loadFinish = null)
        {
            WWW w = new WWW(path);

            yield return(w);

            if (!string.IsNullOrEmpty(w.error))
            {
                Debug.LogWarning("加载 bundle 失败" + w.error);
                yield break;
            }
            AssetBundle ab = w.assetBundle;

            if (loadObj.ContainsKey(ab.name) == false)
            {
                loadObj.Add(ab.name, new AssetObj(ab.LoadAllAssets()));
            }
            if (loadFinish != null)
            {
                loadFinish();
            }
            w.Dispose();
        }
コード例 #17
0
 public void AsyncLoadAssetBundle(string sceneName, string bundleName, LoadFinish loadFinish, LoadAssetBundleCallBack callBack)
 {
     //检测字典
     CheckDict(sceneName, bundleName);
     sceneDict[sceneName].AsyncLoadAssetBundle(fullNameDict[bundleName], loadFinish, callBack);
 }
コード例 #18
0
 /// <summary>
 /// 包加载完成时回调
 /// </summary>
 /// <param name="bundleName"></param>
 public void OnLoadFinish(LoadFinish tmpFinish)
 {
     this.loadFinish = tmpFinish;
 }
コード例 #19
0
 //异步加载
 public void AsyncLoadAssetBundle(string sceneName, string bundleName, LoadFinish loadFinish)
 {
     sceneManager.AsyncLoadAssetBundle(sceneName, bundleName, loadFinish, LoadAssetBundleCallBack);
 }
コード例 #20
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bundleName"></param>
 /// <param name="progress"></param>
 public IABRelationManager(string bundleName, LoadFinish finish = null, LoadProgrecess progress = null)
 {
     dependenceBundle = new List <string>();
     referBundle      = new List <string>();
     Initial(bundleName, finish, progress);
 }
コード例 #21
0
ファイル: ABManager.cs プロジェクト: mengtest/U3DEventFrame
 public IEnumerator AsyncLoadAssetBundleDependences(string bundleName, string referName, LoadFinish loadFinish)
 {
     if (abDict.ContainsKey(bundleName))
     {
         abDict[bundleName].AddReference(referName);
     }
     else
     {
         ABRelationManager abLoader = new ABRelationManager(bundleName, loadFinish);
         abDict.Add(bundleName, abLoader);
         abLoader.AddReference(referName);
         yield return(AsyncLoadAssetBundle(bundleName));
     }
 }
コード例 #22
0
ファイル: ABLoader.cs プロジェクト: mengtest/U3DEventFrame
 public ABLoader(string bundleName, LoadFinish loadFinish)
 {
     this.loadFinish = loadFinish;
     this.bundleName = bundleName;
 }
コード例 #23
0
ファイル: CheatMode.cs プロジェクト: Corecii/Spectrum
 static CheatMode()
 {
     _cheatStates = new Dictionary <Assembly, bool>();
     LoadFinish.Subscribe((data) => OnSceneLoadFinished(data));
 }
コード例 #24
0
 public CheckAssetData(LoadFinish loadFinish)
 {
     checkLoad = loadFinish;
 }