Added parentContainer property

This commit is contained in:
Richard Davey 2018-04-05 14:56:43 +01:00
parent e31cae93d2
commit 183896f8ff
2 changed files with 9 additions and 9 deletions

View file

@ -55,6 +55,15 @@ var GameObject = new Class({
*/
this.type = type;
/**
* The parent Container of this Game Object, if it has one.
*
* @name Phaser.GameObjects.GameObject#parentContainer
* @type {Phaser.GameObjects.Container}
* @since 3.4.0
*/
this.parentContainer = null;
/**
* The name of this Game Object.
* Empty by default and never populated by Phaser, this is left for developers to use.

View file

@ -76,15 +76,6 @@ var Container = new Class({
*/
this.position = 0;
/**
* The parent Container of this Container, if there is one.
*
* @name Phaser.GameObjects.Container#parentContainer
* @type {Phaser.GameObjects.Container}
* @since 3.4.0
*/
this.parentContainer = null;
/**
* [description]
*