mirror of
https://github.com/photonstorm/phaser
synced 2024-12-11 13:56:16 +00:00
Added setName method.
This commit is contained in:
parent
80aa157a11
commit
8e8d43dcf1
1 changed files with 9 additions and 2 deletions
|
@ -50,9 +50,11 @@ var GameObject = new Class({
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
// To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
|
setName: function (value)
|
||||||
update: function ()
|
|
||||||
{
|
{
|
||||||
|
this.name = value;
|
||||||
|
|
||||||
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
setInteractive: function (shape, callback)
|
setInteractive: function (shape, callback)
|
||||||
|
@ -62,6 +64,11 @@ var GameObject = new Class({
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
|
||||||
|
update: function ()
|
||||||
|
{
|
||||||
|
},
|
||||||
|
|
||||||
// Can be overridden by custom Game Objects, but provides default export functionality
|
// Can be overridden by custom Game Objects, but provides default export functionality
|
||||||
toJSON: function ()
|
toJSON: function ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue