[]多场景跳转遇到当前场景不能remove的问题

多场景跳转遇到问题:有5个场景跳转,跳转是websocket消息驱动的,现在的问题是第一个跳到第二个场景正常,第二个跳到第三个正常,第三个跳到第四个及第四个跳到第五个不正常,不正常的地方在:跳转的目的场景可以显示,但是原场景画面仍然存在,代码:
Laya.stage.removeChild(window.sceneSelectroommultiple);
delete window.sceneSelectroommultiple;
Laya.class(StartgameUI, "StartgameUI", startgameUI);
var sceneStartgame = new StartgameUI();
window.sceneStartgame= sceneStartgame;
Laya.stage.addChild(sceneStartgame);
5个场景,4个跳转,前2个正常,后2个不正常,一样的代码。
因为remove跟add不在同一个js,所以remove时用的全局变量。
问题:通常是这样实现的吗?我这个实现方法有问题吗?为什么有的可以,有的不行?请解答。
已邀请:

Supermang42

赞同来自:

可用覆蓋場景的方式。
Laya.stage.replaceChild( Scene );

要回复问题请先

商务合作
商务合作