public static void InitializeBundleData(string[] bundleNames) { s_bundleData = new BundleData(null, ""); foreach (var b in bundleNames) { s_bundleData.MergeChildren(b.Split('/')); } }
public void MergeChildren(IEnumerable <string> mc) { BundleData fd = m_children.Find(s => s.m_name == mc.First()); if (fd == null) { m_children.Add(fd = GetAssetBundle(this, mc.First())); } if (mc.Count() > 1) { fd.MergeChildren(mc.Skip(1)); } }