mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Added empty update method so that default GameObjects can be added to Pools.
This commit is contained in:
parent
1b70df7368
commit
423326c71b
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,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