From 5dcfc2c5e22d379c7d4a2e5e52b62c2e6aee5eca Mon Sep 17 00:00:00 2001 From: ShutovKS Date: Mon, 21 Oct 2024 22:22:46 +0300 Subject: [PATCH] Removed condition for Unity 6 for the rest --- Editor/LLMBuildProcessor.cs | 5 ----- 1 file changed, 5 deletions(-) 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 } } }