Commit eca806c5 authored by huoshizhe's avatar huoshizhe

feat: exit

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