Skip to content

Commit

Permalink
Merge pull request #2600 from entrylabs/issue/7258-4
Browse files Browse the repository at this point in the history
배경음악 동작 수정
  • Loading branch information
kimorkim authored Nov 6, 2023
2 parents dd28d66 + d4f5b33 commit a99df23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2767,12 +2767,18 @@ Entry.Utils.pauseSoundInstances = function() {
Entry.soundInstances.getAllValues().forEach((instance) => {
instance.paused = true;
});
Entry.bgmInstances.getAllValues().forEach((instance) => {
instance.paused = true;
});
};

Entry.Utils.recoverSoundInstances = function() {
Entry.soundInstances.getAllValues().forEach((instance) => {
instance.paused = false;
});
Entry.bgmInstances.getAllValues().forEach((instance) => {
instance.paused = false;
});
};

Entry.Utils.hasClass = (elem, name) => ` ${elem.getAttribute('class')} `.indexOf(` ${name} `) >= 0;
Expand Down

0 comments on commit a99df23

Please sign in to comment.