fix Input enableDebug function, add debug Shape to parentContainer

This commit is contained in:
Godard 2020-04-09 12:04:20 -04:00
parent 9c2447dcb8
commit 5fd94d76a7

View file

@ -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;