商品页完成+ 英雄uuid 5000起步,技能6000起步,物品1000起步,金币9001

This commit is contained in:
2024-12-24 15:41:52 +08:00
parent ca54b0a3da
commit 228112b4ed
17 changed files with 4219 additions and 4154 deletions

View File

@@ -25,6 +25,7 @@ export class HChipComp extends Component {
update_data(uuid:number,num:number=0){
this.h_uuid = uuid;
var icon_path = "game/heros/herois"
console.log("HeroInfo[uuid]",HeroInfo[uuid],uuid)
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);