future 1 рік тому
батько
коміт
9306991f60
1 змінених файлів з 0 додано та 26 видалено
  1. 0 26
      assets/script/ui/home/home_bottom_countdown.ts

+ 0 - 26
assets/script/ui/home/home_bottom_countdown.ts

@@ -34,32 +34,6 @@ export class home_bottom_countdown extends Component {
             }
             this.lab_countdown_time.getComponent(Label).string = Util.formatTimeForSecond(this.seconds)
         },1)
-
-        // this.seconds = userDataManager.getUserFreeAdsTime()
-        // console.log('seconds=',this.seconds)
-        // if(this.seconds==-1) {
-        //     this.unscheduleAllCallbacks()
-        //     this.node.active = false
-        //     if(active_cb){ active_cb(false) }
-        //     return
-        // }
-
-        // this.node.active = true
-        // if(active_cb){ active_cb(true) }
-        // this.lab_countdown_time.getComponent(Label).string = Util.formatTimeForSecond(this.seconds)
-        // this.unscheduleAllCallbacks()
-        // this.schedule(()=>{
-        //     this.seconds --
-        //     if(this.seconds<=0) {
-        //         userDataManager.is_free_ads = false
-        //         userDataManager.saveUserFreeAdsLookVideoCount(0)
-        //         this.unscheduleAllCallbacks()
-        //         this.node.active = false
-        //         if(active_cb){ active_cb(false) }
-        //         return
-        //     }
-        //     this.lab_countdown_time.getComponent(Label).string = Util.formatTimeForSecond(this.seconds)
-        // },1)
     }
 }