Update AudioModule.cs

This commit is contained in:
ALEXTANG
2023-04-25 13:45:33 +08:00
parent 3228aed4db
commit 03e58b921f

View File

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