diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index d2bcd204..ba41606e 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -19,6 +19,8 @@ export class CardComp extends CCComp { is_used:boolean=false; onLoad(){ this.on(GameEvent.CardRefresh,this.onCardRefresh,this) + this.on(GameEvent.MissionStart,this.mission_start,this) + this.on(GameEvent.MissionEnd,this.mission_end,this) } start() { this.init_card() @@ -27,6 +29,12 @@ export class CardComp extends CCComp { this.is_used=true this.node.getChildByName("Button").active=false this.node.getChildByName("show").active=false + } + mission_start(){ + + } + mission_end(){ + } onCardRefresh(event: string, args: any){ this.is_used=false