/// <summary> /// 初始化 /// </summary> public void Initialize() { packagerConfig = PatchManager.Instance.packagerConfig; byte[] stream = null; string uri = string.Empty; bundles = new Dictionary <string, AssetBundle>(); uri = Util.DataPath + packagerConfig.assetDir; if (!File.Exists(uri)) { return; } stream = File.ReadAllBytes(uri); assetbundle = AssetBundle.LoadFromMemory(stream); manifest = assetbundle.LoadAsset <AssetBundleManifest>("AssetBundleManifest"); }
public Packager(IAbsoluteDirectoryPath gamePath, IAbsoluteDirectoryPath outputPath, IAbsoluteDirectoryPath tempPath, PackagerConfig config) { _config = config; _gamePath = gamePath; _outputPath = outputPath; _tempPath = tempPath; _rpfListBuilder = new RpfListBuilder(_gamePath, _config.BuilderConfig); }