(changed: ComponentChanged)
| 127 | } |
| 128 | |
| 129 | async componentChanged(changed: ComponentChanged) { |
| 130 | if (changed.componentName !== 'Sound') return; |
| 131 | |
| 132 | if (changed.type === OBSERVER_TYPE.ADD) { |
| 133 | this.add(changed); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | private async add(changed: ComponentChanged) { |
| 138 | const component = changed.component as SoundComponent; |