升级初步完成

This commit is contained in:
panw
2024-12-06 16:34:17 +08:00
parent 4bac3c6d86
commit a968281bdc
9 changed files with 54 additions and 67 deletions

View File

@@ -247,7 +247,7 @@ export class CardControllerComp extends CCComp {
let cost: number = 0;
let { uuid, type } = card[0];
url = "game/hero/hero_icon";
({ uuid: pathName, name, level ,cost} = smc.heros[uuid]);
({ uuid: pathName, name, level ,cost} = HeroInfo[uuid]);
this.cards[index].lv=level
this.cards[index].cost = cost
let node=this.node.getChildByName('cards').getChildByName('card'+index)