UNPKG

@petkoneo/phaser3-rex-plugins

Version:
16 lines (13 loc) 338 B
const SetPositionBase = Phaser.GameObjects.Graphics.prototype.setPosition; var SetPosition = function (x, y) { var parent = this.parent; if (x === undefined) { x = parent.x; } if (y === undefined) { y = parent.y; } SetPositionBase.call(this, x, y); return this; } export default SetPosition;