Open dimapct opened 9 years ago
positionChangeHandler = (body, bodyImageObject) => { bodyImageObject.image.x = body.gameRect.centerx; bodyImageObject.image.y = body.gameRect.centery; bodyImageObject.infoboxes.forEach(function (infobox) { infobox.updatePosition(new Point(bodyImageObject.image.x, bodyImageObject.image.y)); }); if (this.targetBody.id === body.id) { this.updateContainersPosition(); } }
positionChangeHandler = (body, bodyImageObject) => { bodyImageObject.image.x = body.gameRect.centerx; bodyImageObject.image.y = body.gameRect.centery; bodyImageObject.infoboxes.forEach(function (infobox) { infobox.updatePosition(new Point(bodyImageObject.image.x, bodyImageObject.image.y)); }); if (this.targetBody.id === body.id) { this.updateContainersPosition(); } }