This commit is contained in:
2025-05-29 16:48:14 +08:00
parent e695b9bdac
commit 564b3e2de9

View File

@@ -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