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!; }