dd
This commit is contained in:
@@ -19,6 +19,8 @@ export class CardComp extends CCComp {
|
|||||||
is_used:boolean=false;
|
is_used:boolean=false;
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.on(GameEvent.CardRefresh,this.onCardRefresh,this)
|
this.on(GameEvent.CardRefresh,this.onCardRefresh,this)
|
||||||
|
this.on(GameEvent.MissionStart,this.mission_start,this)
|
||||||
|
this.on(GameEvent.MissionEnd,this.mission_end,this)
|
||||||
}
|
}
|
||||||
start() {
|
start() {
|
||||||
this.init_card()
|
this.init_card()
|
||||||
@@ -27,6 +29,12 @@ export class CardComp extends CCComp {
|
|||||||
this.is_used=true
|
this.is_used=true
|
||||||
this.node.getChildByName("Button").active=false
|
this.node.getChildByName("Button").active=false
|
||||||
this.node.getChildByName("show").active=false
|
this.node.getChildByName("show").active=false
|
||||||
|
}
|
||||||
|
mission_start(){
|
||||||
|
|
||||||
|
}
|
||||||
|
mission_end(){
|
||||||
|
|
||||||
}
|
}
|
||||||
onCardRefresh(event: string, args: any){
|
onCardRefresh(event: string, args: any){
|
||||||
this.is_used=false
|
this.is_used=false
|
||||||
|
|||||||
Reference in New Issue
Block a user