mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Added update method docs
This commit is contained in:
parent
1ca182e209
commit
32a2bcbf85
1 changed files with 8 additions and 0 deletions
|
@ -291,6 +291,14 @@ var HTML5AudioSound = new Class({
|
|||
this.isPaused = false;
|
||||
this.pickAndPlayAudioTag();
|
||||
},
|
||||
/**
|
||||
* Update method called automatically by sound manager on every game step.
|
||||
*
|
||||
* @protected
|
||||
* @method Phaser.Sound.HTML5AudioSound#update
|
||||
* @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
|
||||
* @param {number} delta - The delta time elapsed since the last frame.
|
||||
*/
|
||||
update: function (time, delta) {
|
||||
if (!this.isPlaying) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue