Commit b2c8c214 authored by 章红平's avatar 章红平

提示信息

parent c067e0bd
No preview for this file type
......@@ -1175,8 +1175,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
"width": 1500,
"height": 900
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -186,14 +186,12 @@ export default class cake_class_1 extends MyCocosSceneComponent {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();;
this.initListener();
}
start() {
super.start();
dataCallBack(){
super.dataCallBack();
this.stickers.node.active = false;
this.nowPanel = this.addPanel()
cc.find("bg/topTittle", this.node).getComponentInChildren(cc.Label).string = this.data.title;
// this.playBones(this.candleN,"newAnimation")
}
addPanel() {
......
......@@ -61,12 +61,17 @@ export class MyCocosSceneComponent extends cc.Component {
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem();
this.dataCallBack();
})
} else {
this.data = this.getDefaultData();
this.preloadItem();
this.dataCallBack();
}
}
dataCallBack(){
}
getDefaultData() {
return defaultData;
......
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