技能都改为 cd 减少 玩家学习成本
This commit is contained in:
@@ -33,8 +33,8 @@ export class MissionComp extends CCComp {
|
||||
this.on(GameEvent.MissionEnd,this.mission_end,this)
|
||||
// this.on(GameEvent.CardsClose,this.after_used_skill_card,this)
|
||||
this.on(GameEvent.WaveUpdate,this.on_mon_wave_update,this)
|
||||
this.on(GameEvent.CanUpdateLv,this.show_uplv_button,this)
|
||||
this.on(GameEvent.UseEnhancement,this.hide_uplv_button,this)
|
||||
// this.on(GameEvent.CanUpdateLv,this.show_uplv_button,this)
|
||||
// this.on(GameEvent.UseEnhancement,this.hide_uplv_button,this)
|
||||
|
||||
}
|
||||
|
||||
@@ -73,18 +73,18 @@ export class MissionComp extends CCComp {
|
||||
to_ready(){
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:true})
|
||||
}
|
||||
show_uplv_button(){
|
||||
this.update_count++
|
||||
this.node.getChildByName("uplv").active=true
|
||||
}
|
||||
hide_uplv_button(){
|
||||
this.update_count--
|
||||
if(this.update_count > 0) return
|
||||
this.node.getChildByName("uplv").active=false
|
||||
}
|
||||
to_uplv(){
|
||||
oops.message.dispatchEvent(GameEvent.EnhancementSelect)
|
||||
}
|
||||
// show_uplv_button(){
|
||||
// this.update_count++
|
||||
// this.node.getChildByName("uplv").active=true
|
||||
// }
|
||||
// hide_uplv_button(){
|
||||
// this.update_count--
|
||||
// if(this.update_count > 0) return
|
||||
// this.node.getChildByName("uplv").active=false
|
||||
// }
|
||||
// to_uplv(){
|
||||
// oops.message.dispatchEvent(GameEvent.EnhancementSelect)
|
||||
// }
|
||||
to_call_friend(){
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:false})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user