From 5bc6a1c0a3d616a8479ac8da8baffe9b907a0698 Mon Sep 17 00:00:00 2001 From: donggang <> Date: Tue, 2 Jul 2024 13:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/module/common/GameComponent.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/module/common/GameComponent.ts b/assets/module/common/GameComponent.ts index aacf74f..fd4882c 100644 --- a/assets/module/common/GameComponent.ts +++ b/assets/module/common/GameComponent.ts @@ -456,11 +456,10 @@ export class GameComponent extends Component { } // 自动释放资源 - this.releaseAudioEffect(); - this.release(); - this.releaseDir(); - if (this.resPaths) { + this.releaseAudioEffect(); + this.release(); + this.releaseDir(); this.resPaths.clear(); this.resPaths = null!; }