|
@@ -7,6 +7,7 @@ export class unLock_view extends base_ui {
|
|
@property(Node) btn_close:Node = null
|
|
@property(Node) btn_close:Node = null
|
|
@property(Node) btn_look_video:Node = null
|
|
@property(Node) btn_look_video:Node = null
|
|
@property(Node) lab_look_video:Node = null
|
|
@property(Node) lab_look_video:Node = null
|
|
|
|
+ private max_count:number = 3
|
|
start() {
|
|
start() {
|
|
this.onButtonListen(this.btn_close, ()=>{
|
|
this.onButtonListen(this.btn_close, ()=>{
|
|
this.stopBtnLookVideoAni()
|
|
this.stopBtnLookVideoAni()
|
|
@@ -14,8 +15,11 @@ export class unLock_view extends base_ui {
|
|
})
|
|
})
|
|
let count = 0
|
|
let count = 0
|
|
this.onButtonListen(this.btn_look_video, ()=>{
|
|
this.onButtonListen(this.btn_look_video, ()=>{
|
|
|
|
+ if(count>=this.max_count) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
count++
|
|
count++
|
|
- this.lab_look_video.getComponent(Label).string = '看视频' + count + '/3'
|
|
|
|
|
|
+ this.lab_look_video.getComponent(Label).string = '看视频' + count + '/' + this.max_count
|
|
})
|
|
})
|
|
|
|
|
|
this.playBtnLookVideoAni()
|
|
this.playBtnLookVideoAni()
|