mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update AudioAgent.cs
This commit is contained in:
@@ -242,9 +242,9 @@ namespace TEngine
|
||||
_duration = 0;
|
||||
if (!string.IsNullOrEmpty(path))
|
||||
{
|
||||
if (GameModule.Audio.AudioClipPool.ContainsKey(path))
|
||||
if (GameModule.Audio.AudioClipPool.TryGetValue(path, out var operationHandle))
|
||||
{
|
||||
OnAssetLoadComplete(GameModule.Audio.AudioClipPool[path]);
|
||||
OnAssetLoadComplete(operationHandle);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user