Commit 9d114e16 authored by 范雪寒's avatar 范雪寒

feat: reloadBundle

parent f4761447
...@@ -415,6 +415,13 @@ cc.Class({ ...@@ -415,6 +415,13 @@ cc.Class({
console.error("非源生环境"); console.error("非源生环境");
} }
}, },
reloadBundle() {
const { sceneName, version, bondleUrl } = this.currentBundleInfo;
this.loadBundle(sceneName, version, bondleUrl);
},
exit() { exit() {
cc.game.removePersistRootNode(this.node); cc.game.removePersistRootNode(this.node);
......
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