This commit is contained in:
2025-07-28 17:28:05 +08:00
parent d081695725
commit 98039f36ca

View File

@@ -73,9 +73,11 @@ export class MissionComp extends CCComp {
this.next_func=undefined
}
run_time(){
tween(this.node.getChildByName("time")).to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"}).start()
tween(this.node.getChildByName("time")).to(0.2, {scale:v3(1,1,1)}, {easing:"backIn"}).start()
tween(this.node.getChildByName("time")).to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"}).start()
tween(this.node.getChildByName("time"))
.to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"})
.to(0.2, {scale:v3(1,1,1)}, {easing:"backIn"})
.to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"})
.start()
this.time_num--
this.node.getChildByName("time").getChildByName("time").getComponent(Label).string=this.time_num.toString()
if(this.time_num<=0){