From 9375c0acec33b0583c9acf51fe331daf88e9b19a Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Thu, 6 Apr 2023 17:10:41 +0800 Subject: [PATCH] Update AudioCategory.cs --- Assets/TEngine/Runtime/GameFramework/Audio/AudioCategory.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/TEngine/Runtime/GameFramework/Audio/AudioCategory.cs b/Assets/TEngine/Runtime/GameFramework/Audio/AudioCategory.cs index 7376bb12..24785aeb 100644 --- a/Assets/TEngine/Runtime/GameFramework/Audio/AudioCategory.cs +++ b/Assets/TEngine/Runtime/GameFramework/Audio/AudioCategory.cs @@ -32,11 +32,11 @@ namespace TEngine _bEnable = value; if (!_bEnable) { - foreach (var audioData in AudioAgents) + foreach (var audioAgent in AudioAgents) { - if (audioData != null) + if (audioAgent != null) { - audioData.Stop(); + audioAgent.Stop(); } } }