Commit 1ca5ca49 authored by liwei's avatar liwei

fix: replay 时不再提前销毁场景

loadScene 前 destroy 当前场景,渲染还会访问已清空的子节点。
Co-authored-by: 's avatarCursor <cursoragent@cursor.com>
parent 8c194db1
......@@ -97,7 +97,6 @@ export default class EndView extends cc.Component {
middleLayerComponent.reloadBundle();
}
} else {
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if ((<any>window).courseware) {
(<any>window).courseware.freeAllOcMethod();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment