资源分类,分类出音频

This commit is contained in:
AncTe committed 2023-06-09 22:59:20 +08:00
1 parent 820dc5bf4c
commit 80ce3b1a31
8 files changed
+101 -12

No files matched your search

+3
View File
@@ -37,16 +37,19 @@ export class Disposable<T> extends EventEmitter<DisposableEvent<T>> {
}
active() {
if (this.activated) return;
this.activated = true;
this.emit('active', this._data!);
}
dispose() {
if (!this.activated) return;
this.activated = false;
this.emit('dispose', this._data!);
}
destroy() {
if (this.destroyed) return;
this.destroyed = true;
this.emit('destroy');
delete this._data;