private void LoadScene() { AssetBundleLoader loader = AssetBundleLoader.GetLoader(sceneBundleName); loader.loadRoutine = new AssetBundleLoader.LoadRoutineDelegate(this.SceneBundleLoadRoutine); loader.loadEnd = new AssetBundleLoader.LoadEndDelegate(this.SceneBundleLoadEnd); loader.loadFailed = new AssetBundleLoader.LoadFailedDelegate(this.SceneBundleLoadFailed); loader.Load(); }
// 加载文本数据 private void LoadStgData() { AssetBundleLoader loader = AssetBundleLoader.GetLoader(stgDataBundleName); // 加载进程 loader.loadRoutine = new AssetBundleLoader.LoadRoutineDelegate(this.StgDataBundleLoadRoutine); // 加载完毕进行下一步 loader.loadEnd = new AssetBundleLoader.LoadEndDelegate(this.StgDataBundleLoadEnd); loader.loadFailed = new AssetBundleLoader.LoadFailedDelegate(this.StgDataBundleLoadFailed); loader.Load(); }