|
@@ -94,10 +94,18 @@ export class top_layer extends Component {
|
|
|
}
|
|
|
}
|
|
|
}else if(event.type===config.event_type.fail_event){
|
|
|
- this.fail_ani_view.getComponent(fail_ani).Play()
|
|
|
- this.scheduleOnce(()=>{
|
|
|
- this.fail.getComponent(fail).show(event.event_item_fail_event_data.is_relife,this.onClickReLife.bind(this),this.onClickReStart.bind(this))
|
|
|
- },1.5)
|
|
|
+ let data = event.event_item_fail_event_data
|
|
|
+ if(data.is_show_animation==undefined||data.is_show_animation==null) {
|
|
|
+ data.is_show_animation = true
|
|
|
+ }
|
|
|
+ if(data.is_show_animation) {
|
|
|
+ this.fail_ani_view.getComponent(fail_ani).Play()
|
|
|
+ this.scheduleOnce(()=>{
|
|
|
+ this.fail.getComponent(fail).show(event.event_item_fail_event_data.is_relife, this.onClickReLife.bind(this),this.onClickReStart.bind(this))
|
|
|
+ },1.5)
|
|
|
+ } else {
|
|
|
+ this.fail.getComponent(fail).show(event.event_item_fail_event_data.is_relife, this.onClickReLife.bind(this),this.onClickReStart.bind(this))
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|