技能卡槽 需要测试确认

This commit is contained in:
2025-06-26 16:57:55 +08:00
parent b00cc9536f
commit 0a25259cf4
4 changed files with 56 additions and 61 deletions

View File

@@ -63,12 +63,12 @@ export class CardsCompComp extends CCComp {
// this.card4c.hero_select(list[3])
}
hero_skill_select(){
hero_skill_select(data:any){
let list=getRandomCardsByType(cardType.SKILL,3)
console.log("[CardsComp]:技能选择卡牌列表",list)
this.card1c.hero_skill_select(list[0])
this.card2c.hero_skill_select(list[1])
this.card3c.hero_skill_select(list[2])
this.card1c.hero_skill_select(list[0],data)
this.card2c.hero_skill_select(list[1],data)
this.card3c.hero_skill_select(list[2],data)
// this.card4c.hero_skill_select(list[3])
}
equip_select(){
@@ -122,7 +122,7 @@ export class CardsCompComp extends CCComp {
break
case GameEvent.HeroSkillSelect:
console.log("[CardsComp]:显示技能选择卡牌")
this.hero_skill_select()
this.hero_skill_select(data)
break
case GameEvent.FuncSelect:
console.log("[CardsComp]:显示功能卡牌")