mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
优化
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user