mirror of
https://github.com/photonstorm/phaser
synced 2025-01-18 16:14:02 +00:00
Using checkTouchLocked with play method
This commit is contained in:
parent
093f295389
commit
300ac5b859
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ var HTML5AudioSound = new Class({
|
|||
BaseSound.call(this, manager, key, config);
|
||||
},
|
||||
play: function (markerName, config) {
|
||||
if (this.checkTouchLocked('method', 'play', [markerName, config])) {
|
||||
return false;
|
||||
}
|
||||
if (!BaseSound.prototype.play.call(this, markerName, config)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue