Skip to content

Commit 2037cf4

Browse files
committed
More clarity. phaserjs#3622
1 parent ef136f6 commit 2037cf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/GameObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ var GameObject = new Class({
279279
* @since 3.0.0
280280
*
281281
* @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.
283283
* @param {boolean} [dropZone=false] - Should this Game Object be treated as a drop zone target?
284284
*
285285
* @return {Phaser.GameObjects.GameObject} This GameObject.

0 commit comments

Comments
 (0)