Skip to content

Commit 423326c

Browse files
committed
Added empty update method so that default GameObjects can be added to Pools.
1 parent 1b70df7 commit 423326c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v3/src/gameobjects/GameObject.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ var GameObject = new Class({
4848
return this;
4949
},
5050

51+
// To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
52+
update: function ()
53+
{
54+
},
55+
5156
// Can be overridden by custom Game Objects, but provides default export functionality
5257
toJSON: function ()
5358
{

0 commit comments

Comments
 (0)