private static bool DoCodeInjector(string fromPath, string resultPath) { float progress = 0.0f; EditorUtility.DisplayProgressBar("CodeInjector", "Obfuscating and protecting code...", progress); CodeInjectorSetup setup = CodeInjectorSetupSettings(); string[] files = Directory.GetFiles(fromPath, "*.dll", SearchOption.TopDirectoryOnly); for (int index = 0; index < files.Length; index++) { if (editorAssemblies.Contains(Path.GetFileName(files[index]))) { } else { setup.AddAssembly(files[index]); } } // Դ·¾¶Ìí¼ÓΪÒÀÀµ setup.AddAssemblySearchDirectory(fromPath); setup.OutputDirectory = resultPath; progress = 0.25f; EditorUtility.DisplayProgressBar("CodeInjector", "injectoring and generating code...", progress); EditorUtility.ClearProgressBar(); setup.Run(); EditorUtility.ClearProgressBar(); return(true); }