diff --git a/v3/src/gameobjects/GameObject.js b/v3/src/gameobjects/GameObject.js index 2cc6b79c7..c04873edf 100644 --- a/v3/src/gameobjects/GameObject.js +++ b/v3/src/gameobjects/GameObject.js @@ -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 () {