テストのし過ぎで手が痛いのでどなたか再現できた方に代理で試していただきたいのですが…
コード: 全て選択
SceneManager.changeScene = function() {
if (this.isSceneChanging() && !this.isCurrentSceneBusy()) {
if (this._scene) {
this._scene.terminate();
this._previousClass = this._scene.constructor;
}
var origName = this._scene ? this._scene.constructor.name : "none";
var newName = this._nextScene ? this._nextScene.constructor.name : "none";
this._scene = this._nextScene;
if (this._scene) {
this._nextScene = null; //この2行がもともと逆だった
this._scene.create(); //(createが先でnextSceneが後)
this._sceneStarted = false;
this.onSceneCreate();
}
if (this._exiting) {
this.terminate();
}
}
};
これで直りませんでしょうか。