Compare the depth of two Game Objects.
name | type | description |
---|---|---|
childA | Phaser.GameObjects.GameObject |
The first Game Object. |
childB | Phaser.GameObjects.GameObject |
The second Game Object. |
The difference between the depths of each Game Object.