Make playSound method in RuntimeAudioSystem accept null for link parameter and update RuntimeInteractionSystem to handle new control effects

This commit is contained in:
2026-04-14 01:34:56 +02:00
parent 8639566565
commit a935ccfc96
2 changed files with 18 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ export class RuntimeAudioSystem {
});
}
playSound(soundEmitterId: string, link: InteractionLink) {
playSound(soundEmitterId: string, link: InteractionLink | null = null) {
const soundEmitter = this.soundEmitters.get(soundEmitterId);
if (soundEmitter === undefined) {