示例#1
0
 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);
         }
     }
 }
示例#2
0
        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);
                }
            }
        }