mirror of
https://github.com/photonstorm/phaser
synced 2024-12-01 00:49:41 +00:00
Add Phaser.GameObjects.Group#setActive
This commit is contained in:
parent
6aeb609d55
commit
f1eb31c81a
1 changed files with 18 additions and 0 deletions
|
@ -1102,6 +1102,24 @@ var Group = new Class({
|
|||
return (capacity - used);
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the `active` property of this Group.
|
||||
* When active, this Group runs its `preUpdate` method.
|
||||
*
|
||||
* @method Phaser.GameObjects.Group#setActive
|
||||
* @since 3.24.0
|
||||
*
|
||||
* @param {boolean} value - True if this Group should be set as active, false if not.
|
||||
*
|
||||
* @return {this} This Group object.
|
||||
*/
|
||||
setActive: function (value)
|
||||
{
|
||||
this.active = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the `name` property of this Group.
|
||||
* The `name` property is not populated by Phaser and is presented for your own use.
|
||||
|
|
Loading…
Reference in a new issue