Commit 95813490 authored by 杨一航's avatar 杨一航

fix

parent a70fb9c9
......@@ -155,6 +155,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.excellent.node.active = false;
this.nictTry.active = false;
this.answerNode.node.active = false;
this.node.getChildByName("bg").scale = this._mapScaleMax;
}
pic1 = null;
......@@ -269,8 +271,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!this._cake) {
let cake = cc.instantiate(this.cakePrefab);
cake.parent = this.cakeRoot;
cake.y = 100;
cake.x = 0;
cake.y = 100;
this._cake = cake.getComponent(Cake);
}
this._nowRightIndex = word.indexOf(rightLetter);
......@@ -279,7 +281,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log(cakeWords);
this._cake.init(cakeWords);
this.cakeRoot.y = -this._designSize.height / 2
this.cakeRoot.y = 0;
this.cakeRoot.x = cc.winSize.width;
this.cakeRoot.active = true;
......@@ -383,7 +385,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.tvRoot.y = -cc.winSize.height;
this.tvRoot.x = 0;
this.tvRoot.active = true;
await asyncTweenTo(this.tvRoot, 0.5, { y: -this._designSize.height / 2 });
await asyncTweenTo(this.tvRoot, 0.5, { y: 0 });
this._txtAni.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
this.playAudioByUrl(defaultData.guideAudio)
......
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