mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 08:33:40 +00:00
Added isLocked method to handle locked actions
This commit is contained in:
parent
b25af58495
commit
913f388535
1 changed files with 11 additions and 0 deletions
|
@ -137,6 +137,17 @@ var HTML5AudioSoundManager = new Class({
|
|||
BaseSoundManager.prototype.destroy.call(this);
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
this.onBlurPausedSounds = null;
|
||||
},
|
||||
isLocked: function (sound, name, value) {
|
||||
if (this.locked) {
|
||||
this.lockedActionsQueue.push({
|
||||
sound: sound,
|
||||
name: name,
|
||||
value: value
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue