From 564b3e2de9af25d874a2af652368ab31f80c3e6f Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 29 May 2025 16:48:14 +0800 Subject: [PATCH] dd --- assets/script/game/map/CardComp.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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