private void LoadAssemblies() { foreach (var assemblyName in Settings.Current.DlcAssemblies) { Debugger.Log("Loading assembly " + assemblyName); if (!Dlc.AssemblyCache.Contains(assemblyName.ToLower())) { var assemblyUrl = UriConstructor.GetPathForDlcAssembly(assemblyName); LoadAssembly(assemblyUrl); Dlc.AssemblyCache.Add(assemblyName); Debugger.Log("Loaded assembly " + assemblyName); } else { Debugger.Log("Already loaded assembly " + assemblyName); } } }
private IEnumerator LoadBundles() { foreach (var bundleName in Settings.Current.DlcBundles) { Debugger.Log("Loading bundle " + bundleName); if (!Dlc.BundleCache.ContainsKey(bundleName.ToLower())) { var bundleUrl = UriConstructor.GetUriForBundle(bundleName); yield return(startCoroutine(LoadBundle(bundleName, bundleUrl))); Debugger.Log("Loaded bundle " + bundleName); } else { Debugger.Log("Already loaded bundle " + bundleName); } } }