We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80aa157 commit 8e8d43dCopy full SHA for 8e8d43d
1 file changed
v3/src/gameobjects/GameObject.js
@@ -50,9 +50,11 @@ var GameObject = new Class({
50
return this;
51
},
52
53
- // To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
54
- update: function ()
+ setName: function (value)
55
{
+ this.name = value;
56
+
57
+ return this;
58
59
60
setInteractive: function (shape, callback)
@@ -62,6 +64,11 @@ var GameObject = new Class({
62
64
63
65
66
67
+ // To be overridden by custom GameObjects. Allows base objects to be used in a Pool.
68
+ update: function ()
69
+ {
70
+ },
71
72
// Can be overridden by custom Game Objects, but provides default export functionality
73
toJSON: function ()
74
0 commit comments