ResizeList() {
        for (var i = 0; i < this.resizePixiObjects.length; i++) {
            var item = this.resizePixiObjects[i];

            switch (item.resizeType) {
                case ResizeTypes.FullSize:
                    item.pixiObject.width = this.width;
                    item.pixiObject.height = this.height;
                    this.lastPosX = -1;
                    this.lastPosY = -1;
                    break;

                case ResizeTypes.Position:
                    item.pixiObject.position.set(this.width + item.offSetX, this.height + item.offSetY);
                    break;

                case ResizeTypes.PivotAtHalfSize:
                    item.pixiObject.pivot.set(-this.halfWidth, -this.halfHeight);
                    break;

                case ResizeTypes.Collider:
                    this.collider = this.world.CreateBox(this.sprite);
                    break;
            }
        }
    }
/**
     * Resize objects that uses the camera size for its own size/position etc.
     */
Resize objects that uses the camera size for its own size/position etc.
Resize objects that uses the camera size for its own size / position etc .
ResizeList() {
        for (var i = 0; i < this.resizePixiObjects.length; i++) {
            var item = this.resizePixiObjects[i];
            switch (item.resizeType) {
                case ResizeTypes.FullSize:
                    item.pixiObject.width = this.width;
                    item.pixiObject.height = this.height;
                    this.lastPosX = -1;
                    this.lastPosY = -1;
                    break;
                case ResizeTypes.Position:
                    item.pixiObject.position.set(this.width + item.offSetX, this.height + item.offSetY);
                    break;
                case ResizeTypes.PivotAtHalfSize:
                    item.pixiObject.pivot.set(-this.halfWidth, -this.halfHeight);
                    break;
                case ResizeTypes.Collider:
                    this.collider = this.world.CreateBox(this.sprite);
                    break;
            }
        }
    }
ResizeList ( ) { for ( var i = 0 ; i < this . resizePixiObjects . length ; i ++ ) { var item = this . resizePixiObjects [ i ] ; switch ( item . resizeType ) { case ResizeTypes . FullSize : item . pixiObject . width = this . width ; item . pixiObject . height = this . height ; this . lastPosX = - 1 ; this . lastPosY = - 1 ; break ; case ResizeTypes . Position : item . pixiObject . position . set ( this . width + item . offSetX , this . height + item . offSetY ) ; break ; case ResizeTypes . PivotAtHalfSize : item . pixiObject . pivot . set ( - this . halfWidth , - this . halfHeight ) ; break ; case ResizeTypes . Collider : this . collider = this . world . CreateBox ( this . sprite ) ; break ; } } }
Resize objects that uses the camera size for its own size/position etc.
Resize objects that uses the camera size for its own size / position etc .