Fixed bug where children of Groups wouldn't have their preUpdate methods called.

This commit is contained in:
Richard Davey
2013-08-09 20:03:36 +01:00
parent 0b1bcaf270
commit aff7d99a8a
6 changed files with 37 additions and 10 deletions
+2
View File
@@ -550,6 +550,7 @@ module Phaser.Components {
* @param boundsSprite If you want to restrict the drag of this sprite to within the bounding box of another sprite, pass it here
*/
public enableDrag(lockCenter: boolean = false, bringToTop: boolean = false, pixelPerfect: boolean = false, alphaThreshold: number = 255, boundsRect: Rectangle = null, boundsSprite: Phaser.Sprite = null) {
this._dragPoint = new Point;
this.draggable = true;
@@ -569,6 +570,7 @@ module Phaser.Components {
{
this.boundsSprite = boundsSprite;
}
}
/**