@@ -211,7 +211,7 @@ var Systems = new Class({
211211
212212 /**
213213 * The Scene Update function.
214- *
214+ *
215215 * This starts out as NOOP during init, preload and create, and at the end of create
216216 * it swaps to be whatever the Scene.update function is.
217217 *
@@ -368,17 +368,19 @@ var Systems = new Class({
368368 * @method Phaser.Scenes.Systems#resume
369369 * @since 3.0.0
370370 *
371+ * @param {object } [data] - A data object that will be passed on the 'resume' event.
372+ *
371373 * @return {Phaser.Scenes.Systems } This Systems object.
372374 */
373- resume : function ( )
375+ resume : function ( data )
374376 {
375377 if ( ! this . settings . active )
376378 {
377379 this . settings . status = CONST . RUNNING ;
378380
379381 this . settings . active = true ;
380382
381- this . events . emit ( 'resume' , this ) ;
383+ this . events . emit ( 'resume' , this , data ) ;
382384 }
383385
384386 return this ;
@@ -415,9 +417,11 @@ var Systems = new Class({
415417 * @method Phaser.Scenes.Systems#wake
416418 * @since 3.0.0
417419 *
420+ * @param {object } [data] - A data object that will be passed on the 'wake' event.
421+ *
418422 * @return {Phaser.Scenes.Systems } This Systems object.
419423 */
420- wake : function ( )
424+ wake : function ( data )
421425 {
422426 var settings = this . settings ;
423427
@@ -426,7 +430,7 @@ var Systems = new Class({
426430 settings . active = true ;
427431 settings . visible = true ;
428432
429- this . events . emit ( 'wake' , this ) ;
433+ this . events . emit ( 'wake' , this , data ) ;
430434
431435 if ( settings . isTransition )
432436 {
0 commit comments