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 this.next_func=undefined
} }
run_time(){ 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"))
tween(this.node.getChildByName("time")).to(0.2, {scale:v3(1,1,1)}, {easing:"backIn"}).start() .to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"})
tween(this.node.getChildByName("time")).to(0.2, {scale:v3(1.5,1.5,1.5)}, {easing:"backOut"}).start() .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.time_num--
this.node.getChildByName("time").getChildByName("time").getComponent(Label).string=this.time_num.toString() this.node.getChildByName("time").getChildByName("time").getComponent(Label).string=this.time_num.toString()
if(this.time_num<=0){ if(this.time_num<=0){