mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Added FX.setActive method.
This commit is contained in:
parent
09ebf4048e
commit
2f2aeb82e8
1 changed files with 19 additions and 0 deletions
|
@ -55,6 +55,25 @@ var Controller = new Class({
|
|||
this.active = true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the active state of this FX Controller.
|
||||
*
|
||||
* A disabled FX Controller will not be updated.
|
||||
*
|
||||
* @method Phaser.FX.Controller#setActive
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @param {boolean} value - `true` to enable this FX Controller, or `false` to disable it.
|
||||
*
|
||||
* @return {this} This FX Controller instance.
|
||||
*/
|
||||
setActive: function (value)
|
||||
{
|
||||
this.active = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Destroys this FX Controller.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue