mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
Arcade Physics Colliders have a name property and setName method.
This commit is contained in:
parent
d72c7d501a
commit
c6f4a6ed43
1 changed files with 26 additions and 0 deletions
|
@ -38,6 +38,15 @@ var Collider = new Class({
|
|||
*/
|
||||
this.world = world;
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @name Phaser.Physics.Arcade.Collider#name
|
||||
* @type {string}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.name = '';
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
@ -103,6 +112,23 @@ var Collider = new Class({
|
|||
this.callbackContext = callbackContext;
|
||||
},
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @method Phaser.Physics.Arcade.Collider#setName
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string} name - [description]
|
||||
*
|
||||
* @return {Phaser.Physics.Arcade.Collider} [description]
|
||||
*/
|
||||
setName: function (name)
|
||||
{
|
||||
this.name = name;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue