Commit 645893b9 authored by 杨一航's avatar 杨一航

fix

parent 51e24e20
......@@ -609,7 +609,7 @@
"__id__": 10
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 12
......@@ -8354,9 +8354,7 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
......@@ -9664,9 +9662,7 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
......
......@@ -585,7 +585,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
probar.getComponent(cc.ProgressBar).unscheduleAllCallbacks();
this._coursewareStoped();
}
}, 0.1, 31, 0.1)
}, 0.1, 61, 0.1)
}
async _startCourseware(word) {
......@@ -674,8 +674,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const blueHead = cc.find("Canvas/road/blueHead");
const redHead = cc.find("Canvas/road/redHead");
blueHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Blue / (this._cardList.length - 1);
redHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Red / (this._cardList.length - 1);
blueHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Blue / 10;
redHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Red / 10;
if (isRight) {
......@@ -909,6 +909,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
async toEnd() {
const blueHead = cc.find("Canvas/road/blueHead");
const redHead = cc.find("Canvas/road/redHead");
blueHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Blue / 10;
redHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Red / 10;
this._redLb.string = `${this._status.Red}/10`;
this._blueLb.string = `${this._status.Blue}/10`;
......@@ -925,6 +930,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// { x: pos.x, y: pos.y },
// { easing: "cubicOut" }
// );
if (this.isMySide) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("finish", 1);
} else {
}
await asyncDelay(0.2);
}
......
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