Use Scene Display List if not available

This commit is contained in:
Richard Davey 2021-01-07 12:22:09 +00:00
parent c6ad8b1306
commit 3db77c7a10

View file

@ -653,7 +653,14 @@ var GameObject = new Class({
}
}
if (this.displayList)
{
indexes.unshift(this.displayList.getIndex(child));
}
else
{
indexes.unshift(this.scene.sys.displayList.getIndex(child));
}
return indexes;
},