当三个英雄后,不再出现其他英雄
This commit is contained in:
@@ -52,7 +52,6 @@ export class MissionComp extends CCComp {
|
||||
1:{uuid:0,count:0},
|
||||
2:{uuid:0,count:0},
|
||||
}
|
||||
|
||||
func_queue:any=[]
|
||||
|
||||
|
||||
@@ -259,7 +258,7 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
to_ready(){
|
||||
console.log("[MissionComp] ** 2 ** to_ready")
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect)
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect,{called:[]})
|
||||
}
|
||||
ready_to_fight(){
|
||||
console.log("[MissionComp] ** 3 ** ready_to_fight")
|
||||
@@ -279,7 +278,8 @@ export class MissionComp extends CCComp {
|
||||
// oops.message.dispatchEvent(GameEvent.EnhancementSelect)
|
||||
// }
|
||||
to_call_friend(){
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect)
|
||||
let called = Object.values(this.heros).filter((item: any) => item.uuid != 0)
|
||||
oops.message.dispatchEvent(GameEvent.HeroSelect,{called:called})
|
||||
}
|
||||
|
||||
to_fight(){
|
||||
@@ -326,6 +326,7 @@ export class MissionComp extends CCComp {
|
||||
1:{uuid:0,count:0},
|
||||
2:{uuid:0,count:0},
|
||||
}
|
||||
|
||||
this.clear_time()
|
||||
this.hide_wave_time()
|
||||
this.tals={
|
||||
|
||||
Reference in New Issue
Block a user