|
@@ -68,10 +68,12 @@ export class base_view extends Component {
|
|
|
StatisticsManager.request_collect_rewardVideoData(collect_data)
|
|
|
})
|
|
|
})
|
|
|
- this.btn_tip.on(Node.EventType.TOUCH_START,()=>{
|
|
|
- gameManager.playBtnSound()
|
|
|
- this.onTipBtnClick();
|
|
|
- },this);
|
|
|
+ if(this.btn_tip!=null) {
|
|
|
+ this.btn_tip.on(Node.EventType.TOUCH_START,()=>{
|
|
|
+ gameManager.playBtnSound()
|
|
|
+ this.onTipBtnClick();
|
|
|
+ },this);
|
|
|
+ }
|
|
|
if(this.btn_pause!=null){
|
|
|
this.btn_pause.on(Node.EventType.TOUCH_START,()=>{
|
|
|
self.isPause = true;
|
|
@@ -171,9 +173,9 @@ export class base_view extends Component {
|
|
|
this.unscheduleAllCallbacks()
|
|
|
}
|
|
|
start_time_count(time:number){
|
|
|
- if(this.lab_time_count==null){
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(this.lab_time_count==null){
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.time_all_count = time;
|
|
|
// this.lab_time_count.active = true;
|
|
|
|
|
@@ -196,10 +198,10 @@ export class base_view extends Component {
|
|
|
// self.lab_time_count.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
|
|
|
self.lab_countdown_time.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
|
|
|
}else{
|
|
|
- self.progressbar.progress = (self.time_all_count-self.time_count)/self.time_all_count;
|
|
|
+ // self.progressbar.progress = (self.time_all_count-self.time_count)/self.time_all_count;
|
|
|
// self.lab_time_count.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
|
|
|
self.lab_countdown_time.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
|
|
|
- self.clock_ani.getComponent(clock_angle).addSecond();
|
|
|
+ // self.clock_ani.getComponent(clock_angle).addSecond();
|
|
|
// 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()
|