You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/GameObject.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,7 @@ var GameObject = new Class({
279
279
* @since 3.0.0
280
280
*
281
281
* @param {*} [shape] - A geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
282
-
* @param {HitAreaCallback} [callback] - A callback to be invoked when the Game Object is interacted with.
282
+
* @param {HitAreaCallback} [callback] - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
283
283
* @param {boolean} [dropZone=false] - Should this Game Object be treated as a drop zone target?
284
284
*
285
285
* @return {Phaser.GameObjects.GameObject} This GameObject.
0 commit comments