Added FX.setActive method.

This commit is contained in:
Richard Davey 2023-03-30 16:58:43 +01:00
parent 09ebf4048e
commit 2f2aeb82e8

View file

@ -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.
*