Skip to content

Commit c3ba02a

Browse files
committed
Removing hitArea in place of input (InteractiveObject)
1 parent a415039 commit c3ba02a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

v3/src/gameobjects/GameObject.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ var GameObject = new Class({
3636
this.renderMask = 15;
3737
this.renderFlags = 15;
3838

39-
this.hitArea = null;
40-
this.hitAreaCallback = null;
39+
this.input = null;
4140

4241
// Trigger a scene z-depth sort
4342
this.scene.sys.sortChildrenFlag = true;
@@ -56,9 +55,9 @@ var GameObject = new Class({
5655
{
5756
},
5857

59-
setHitArea: function (shape, callback)
58+
setInteractive: function (shape, callback)
6059
{
61-
this.scene.sys.inputManager.setHitArea(this, shape, callback);
60+
this.scene.sys.inputManager.enable(this, shape, callback);
6261

6362
return this;
6463
},

0 commit comments

Comments
 (0)