private void ConfigureControl(ConfigureInfo info) { string resourcePath = m_StartPath + "/" + info.ResourcePath; switch (info.Type) { case ConfigureType.File: BuildConfigure_File(resourcePath, info.AssetBundlePath); break; case ConfigureType.Directory: BuildConfigure_Directory(resourcePath, info.AssetBundlePath); break; case ConfigureType.F2O: BuildConfigure_FileToAB(info.Dependent, resourcePath, info.AssetBundlePath); break; case ConfigureType.EF2O: BuildConfigure_DirectoryEventFileToAB(resourcePath, info.AssetBundlePath); break; case ConfigureType.D2O: BuildConfigure_DirectoryToAB(resourcePath, info.AssetBundlePath); break; case ConfigureType.ED2O: BuildConfigure_EventDirectoryToAB(resourcePath, info.AssetBundlePath); break; } }
public void AddConfigure(ConfigureType type, string resourcePath, string assetBundlePath = null, bool dependent = true) { Debug.Log(string.Format("【Build AssetBundle】configure type:{0} resPath:{1}", Enum.GetName(typeof(ConfigureType), type), resourcePath)); ConfigureInfo info = new ConfigureInfo(); info.Type = type; info.ResourcePath = resourcePath; info.AssetBundlePath = assetBundlePath; info.Dependent = dependent; m_ConfigureInfoList.Add(info); }