From 03e58b921f567db09f3eabe829cc84713b569a10 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Tue, 25 Apr 2023 13:45:33 +0800 Subject: [PATCH] Update AudioModule.cs --- Assets/TEngine/Runtime/GameFramework/Audio/AudioModule.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/TEngine/Runtime/GameFramework/Audio/AudioModule.cs b/Assets/TEngine/Runtime/GameFramework/Audio/AudioModule.cs index 510aac4c..51dce5ee 100644 --- a/Assets/TEngine/Runtime/GameFramework/Audio/AudioModule.cs +++ b/Assets/TEngine/Runtime/GameFramework/Audio/AudioModule.cs @@ -347,6 +347,7 @@ namespace TEngine try { +#if UNITY_EDITOR TypeInfo typeInfo = typeof(AudioSettings).GetTypeInfo(); PropertyInfo propertyInfo = typeInfo.GetDeclaredProperty("unityAudioDisabled"); _bUnityAudioDisabled = (bool)propertyInfo.GetValue(null); @@ -354,6 +355,7 @@ namespace TEngine { return; } +#endif } catch (Exception e) {