Added empty update method so that default GameObjects can be added to Pools.

This commit is contained in:
photonstorm 2017-07-07 18:26:03 +01:00
parent 1b70df7368
commit 423326c71b

View file

@ -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 ()
{ {