mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update AudioModule.cs
This commit is contained in:
@@ -347,6 +347,7 @@ namespace TEngine
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
TypeInfo typeInfo = typeof(AudioSettings).GetTypeInfo();
|
TypeInfo typeInfo = typeof(AudioSettings).GetTypeInfo();
|
||||||
PropertyInfo propertyInfo = typeInfo.GetDeclaredProperty("unityAudioDisabled");
|
PropertyInfo propertyInfo = typeInfo.GetDeclaredProperty("unityAudioDisabled");
|
||||||
_bUnityAudioDisabled = (bool)propertyInfo.GetValue(null);
|
_bUnityAudioDisabled = (bool)propertyInfo.GetValue(null);
|
||||||
@@ -354,6 +355,7 @@ namespace TEngine
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user