mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +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;
|
||||
},
|
||||
|
||||
// To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
|
||||
update: function ()
|
||||
setName: function (value)
|
||||
{
|
||||
this.name = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setInteractive: function (shape, callback)
|
||||
|
@ -62,6 +64,11 @@ var GameObject = new Class({
|
|||
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
|
||||
toJSON: function ()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue