Swaps the position of two Game Objects in this Container. Both Game Objects must belong to this Container.
name | type | description |
---|---|---|
child1 | Phaser.GameObjects.GameObject |
The first Game Object to swap. |
child2 | Phaser.GameObjects.GameObject |
The second Game Object to swap. |
This Container instance.