protected void _PushTaskAndExcute(BundlePkgInfo Pkginfo, object operation) { Task.PushOperation(Pkginfo, operation); if (FrameWorkConfig.Open_DEBUG) { LogMgr.LogFormat("开始异步任务 :{0} => {1} =>", Pkginfo.BundleName, Pkginfo.AbFileName, Task.asyncType); } WaitTaskCommand cmd = WaitTaskCommand.Create(Task, AsyncLoadFinished); cmd.Excute(); }
private void AsyncLoadFinished(WaitTaskCommand cmd) { if (this.isRunning()) { if (isABMode) { ResBundleMgr.mIns.Cache.InvokeBundleFinishEvent(Task.CurrentLoadInfo.BundleName); ResBundleMgr.mIns.Cache.RemoveLoadingBundle(Task.CurrentLoadInfo.BundleName); } AutoCreateBundle(); if (this.isRunning()) { RunNextTask(); } } }