You need to sign in or sign up before continuing.
Commit 3c4bf285 authored by yu's avatar yu

10.11调整

parent 61af40e4
......@@ -2,6 +2,6 @@
"ver": "2.0.1",
"uuid": "5c34a8d8-5e4e-4ae6-b4d1-b32446d54f67",
"downloadMode": 0,
"duration": 3.787755,
"duration": 1.48898,
"subMetas": {}
}
\ No newline at end of file
......@@ -1768,7 +1768,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
723.4129999999999,
721.86,
-542.231,
0,
0,
......@@ -1840,7 +1840,7 @@
"node": {
"__id__": 37
},
"_enabled": false,
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
......@@ -1972,7 +1972,7 @@
"node": {
"__id__": 40
},
"_enabled": false,
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
......
......@@ -134,20 +134,27 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.layout_final.active = false;
}
private cleanBridge() {
let bridge_4 = cc.find("bridge_4", this.layout_game);
bridge_4.children.forEach((ch) => {
let word = cc.find("word", ch);
word.getComponent(cc.Label).string = "";
})
let bridge_8 = cc.find("bridge_8", this.layout_game);
bridge_8.children.forEach((ch) => {
let word = cc.find("word", ch);
word.getComponent(cc.Label).string = "";
})
let bridge_12 = cc.find("bridge_12", this.layout_game);
bridge_12.children.forEach((ch) => {
let word = cc.find("word", ch);
word.getComponent(cc.Label).string = "";
// let bridge_4 = cc.find("bridge_4", this.layout_game);
// bridge_4.active = false;
// bridge_4.children.forEach((ch) => {
// let word = cc.find("word", ch);
// word.getComponent(cc.Label).string = "";
// })
// let bridge_8 = cc.find("bridge_8", this.layout_game);
// bridge_8.children.forEach((ch) => {
// let word = cc.find("word", ch);
// word.getComponent(cc.Label).string = "";
// })
// let bridge_12 = cc.find("bridge_12", this.layout_game);
// bridge_12.children.forEach((ch) => {
// let word = cc.find("word", ch);
// word.getComponent(cc.Label).string = "";
// })
// bridge_8.active = false;
// bridge_12.active = false;
this.layout_game.children.forEach((ch) => {
ch.active = false;
})
}
......@@ -191,6 +198,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let c_d = data.wordArr[idx];
if (!c_d) ch.active = false;
this.initCloudItem(ch, c_d);
this.floatAction(ch);
});
layout_bridge.children.forEach((item, idx) => {
let c_d = data.wordArr[idx];
......@@ -352,7 +360,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private floatAction(target) {
cc.Tween.stopAllByTarget(target);
cc.tween(target).by(0.3, { y: -10 }).by(0.3, { y: 10 }).start();
cc.tween(target).by(0.15, { y: -20 }).by(0.3, { y: 20 }).start();
}
......
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