mirror of
https://github.com/photonstorm/phaser
synced 2025-01-05 17:58:48 +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);
|
BaseSoundManager.prototype.destroy.call(this);
|
||||||
this.onBlurPausedSounds.length = 0;
|
this.onBlurPausedSounds.length = 0;
|
||||||
this.onBlurPausedSounds = null;
|
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