private static void PostCompile() { if (!AssemblyHelper.ExistMainAssembly()) { return; } EditorApplication.LockReloadAssemblies(); try { var readerParams = AssemblyHelper.ReadAndWrite(); var mainModule = AssemblyHelper.FindModule(TargetModuleName, readerParams); var l2MModule = AssemblyHelper.FindModule("LinqPatcherAttribute", readerParams); var coreModule = AssemblyHelper.GetCoreModule(); Execute(mainModule, l2MModule, coreModule); } finally { EditorApplication.UnlockReloadAssemblies(); } }