|
@@ -171,6 +171,7 @@ export class base_view extends Component {
|
|
|
return
|
|
|
}
|
|
|
this.time_all_count = time;
|
|
|
+ this.lab_countdown_time.getComponent(Label).string = ''
|
|
|
this.lab_countdown_time.active = true;
|
|
|
|
|
|
let self = this;
|
|
@@ -182,13 +183,15 @@ export class base_view extends Component {
|
|
|
}
|
|
|
if(self.time_count<self.time_all_count){
|
|
|
self.time_count+=1;
|
|
|
- self.lab_countdown_time.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
|
|
|
- if(this.categoryid===config.PLAY_TYPE.JI_YI_LI){
|
|
|
- }else{
|
|
|
- // tween(self.lab_countdown_time).to(0.8,{scale: new Vec3(2, 2, 1)}).call(()=>{
|
|
|
- // self.lab_countdown_time.scale = new Vec3(1,1,1)
|
|
|
- // }).start()
|
|
|
- }
|
|
|
+ let current_time = this.time_all_count-this.time_count
|
|
|
+ self.lab_countdown_time.getComponent(Label).string = `${current_time}s`
|
|
|
+ // if(current_time < 10) {
|
|
|
+ // let scale_default = new Vec3(1,1,1)
|
|
|
+ // let scale_magnify = new Vec3(1.8, 1.8, 1)
|
|
|
+ // tween(self.lab_countdown_time).to(0.65,{scale: scale_magnify}).call(()=>{
|
|
|
+ // self.lab_countdown_time.scale = scale_default
|
|
|
+ // }).start()
|
|
|
+ // }
|
|
|
|
|
|
}else{
|
|
|
self.lab_countdown_time.getComponent(Label).string = "0s";
|