Commit eca806c5 authored by huoshizhe's avatar huoshizhe

feat: exit

parent 6783530d
...@@ -594,6 +594,13 @@ cc.Class({ ...@@ -594,6 +594,13 @@ cc.Class({
this.showOneLog(); this.showOneLog();
}, 1000); }, 1000);
}, },
exit() {
cc.game.removePersistRootNode(this.node);
cc.director.loadScene("emptyScene", () => {
this.callNativeFunction({ name: 'exit', value: '' });
});
},
getRainbowColorList() { getRainbowColorList() {
return [ return [
......
{ {
"last-module-event-record-time": 1636882785201, "last-module-event-record-time": 1639702063432,
"migrate-history": [ "migrate-history": [
"cloud-function" "cloud-function"
] ]
......
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