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) {