mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Added canInput method
This commit is contained in:
parent
f853f72b92
commit
b182557d03
1 changed files with 15 additions and 0 deletions
|
@ -572,6 +572,21 @@ var Systems = new Class({
|
||||||
return this.settings.status;
|
return this.settings.status;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Can this Scene receive Input events?
|
||||||
|
*
|
||||||
|
* @method Phaser.Scenes.Systems#canInput
|
||||||
|
* @since 3.60.0
|
||||||
|
*
|
||||||
|
* @return {boolean} `true` if this Scene can receive Input events.
|
||||||
|
*/
|
||||||
|
canInput: function ()
|
||||||
|
{
|
||||||
|
var status = this.settings.status;
|
||||||
|
|
||||||
|
return (status > CONST.PENDING && status <= CONST.RUNNING);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is this Scene sleeping?
|
* Is this Scene sleeping?
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue