MCPcopy Create free account
hub / github.com/eva-engine/eva.js / onDestroy

Method onDestroy

packages/plugin-sound/lib/SoundSystem.ts:121–127  ·  view source on GitHub ↗

* System 被销毁的时候调用。 * Called while the system be destroyed.

()

Source from the content-addressed store, hash-verified

119 * Called while the system be destroyed.
120 */
121 onDestroy() {
122 this.components.forEach(component => {
123 component.onDestroy();
124 });
125 this.components = [];
126 sound.removeAll();
127 }
128
129 async componentChanged(changed: ComponentChanged) {
130 if (changed.componentName !== 'Sound') return;

Callers

nothing calls this directly

Calls 1

removeAllMethod · 0.45

Tested by

no test coverage detected