This commit is contained in:
panw
2025-06-19 16:38:20 +08:00
parent 492e052d5b
commit 3582521e4e
5 changed files with 68 additions and 44 deletions

View File

@@ -89,7 +89,7 @@ export class CardsCompComp extends CCComp {
/** 添加卡牌展示到队列 */
private addToQueue(e: GameEvent, data?: any) {
console.log("[CardsComp]:添加卡牌到队列", e);
console.log("[CardsComp]:添加卡牌到队列", e,data);
this.cardQueue.push({type: e, data: data});
this.processQueue();
}
@@ -119,7 +119,7 @@ export class CardsCompComp extends CCComp {
case GameEvent.CardRefresh:
console.log("[CardsComp]:显示随机刷新卡牌")
this.node.getChildByName("Button").active=true
this.random_select()
this.func_select()
break
}
this.show()
@@ -173,7 +173,7 @@ export class CardsCompComp extends CCComp {
.start();
}
clear_cards(){
console.log("[CardsComp]:清除卡牌队列")
// console.log("[CardsComp]:清除卡牌队列")
this.cardQueue = [];
this.close_cards(GameEvent.CardsClose,null)
}