mirror of
https://github.com/photonstorm/phaser
synced 2025-02-26 12:27:09 +00:00
fix Input enableDebug function, add debug Shape to parentContainer
This commit is contained in:
parent
9c2447dcb8
commit
5fd94d76a7
1 changed files with 3 additions and 0 deletions
|
@ -2468,6 +2468,9 @@ var InputPlugin = new Class({
|
|||
debug.setScrollFactor(gameObject.scrollFactorX, gameObject.scrollFactorY);
|
||||
};
|
||||
|
||||
if(gameObject.parentContainer)
|
||||
gameObject.parentContainer.add(debug);
|
||||
|
||||
updateList.add(debug);
|
||||
|
||||
input.hitAreaDebug = debug;
|
||||
|
|
Loading…
Add table
Reference in a new issue