From 60d75288f6518334c0b8076f4427977bcd87754d Mon Sep 17 00:00:00 2001 From: jbphet Date: Tue, 29 Jun 2021 12:55:30 -0600 Subject: [PATCH] set soundPlayerIndex for level selection button, see https://github.com/phetsims/vegas/issues/89 --- js/game/view/LevelSelectionNode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/game/view/LevelSelectionNode.js b/js/game/view/LevelSelectionNode.js index 4822d06..0edfc22 100644 --- a/js/game/view/LevelSelectionNode.js +++ b/js/game/view/LevelSelectionNode.js @@ -79,7 +79,8 @@ class LevelSelectionNode extends Node { numberOfStars: options.numStarsOnButtons, perfectScore: options.perfectScore, scale: options.buttonScale - } + }, + soundPlayerIndex: i } ); this.addChild( buttons[ i ] );