diff --git a/Editor/LLMBuildProcessor.cs b/Editor/LLMBuildProcessor.cs index af541480..f0638a88 100644 --- a/Editor/LLMBuildProcessor.cs +++ b/Editor/LLMBuildProcessor.cs @@ -51,17 +51,12 @@ public void OnPostprocessBuild(BuildReport report) public void BuildCompleted() { -#if UNITY_6000 // Delay the reset operation to ensure Unity is no longer in the build process EditorApplication.delayCall += () => { Application.logMessageReceived -= OnBuildError; LLMBuilder.Reset(); }; -#else - Application.logMessageReceived -= OnBuildError; - LLMBuilder.Reset(); -#endif } } }