Added update method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:19:07 +01:00
parent 1ca182e209
commit 32a2bcbf85

View file

@ -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;