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

提示信息

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