Commit 53aa3d10 authored by 范雪寒's avatar 范雪寒

feat: 临时存取数据

parent f1db089b
......@@ -39,6 +39,15 @@ export default class NewClass extends middleLayerBase {
}
data: any = {};
setData(data: any) {
this.data = data;
}
getData() {
return this.data;
}
async start() {
this.node.zIndex = 9999;
cc.game.addPersistRootNode(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