We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
input
1 parent a415039 commit c3ba02aCopy full SHA for c3ba02a
1 file changed
v3/src/gameobjects/GameObject.js
@@ -36,8 +36,7 @@ var GameObject = new Class({
36
this.renderMask = 15;
37
this.renderFlags = 15;
38
39
- this.hitArea = null;
40
- this.hitAreaCallback = null;
+ this.input = null;
41
42
// Trigger a scene z-depth sort
43
this.scene.sys.sortChildrenFlag = true;
@@ -56,9 +55,9 @@ var GameObject = new Class({
56
55
{
57
},
58
59
- setHitArea: function (shape, callback)
+ setInteractive: function (shape, callback)
60
61
- this.scene.sys.inputManager.setHitArea(this, shape, callback);
+ this.scene.sys.inputManager.enable(this, shape, callback);
62
63
return this;
64
0 commit comments