英雄设定大概完成,接下来需要借鉴其他热门游戏设定,再修改

This commit is contained in:
2025-01-21 10:53:07 +08:00
parent 478cf13f5e
commit 34039c3ca7
19 changed files with 1501 additions and 309 deletions

View File

@@ -82,23 +82,23 @@ export class MissionHomeComp extends CCComp {
parent.getComponent(UITransform).height=height
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==3) {
// if (HeroInfo[HeroList[i]].quality==3) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
}
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==2) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
}
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==1) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
// }
}
// for (let i = 0; i < hc; i++) {
// if (HeroInfo[HeroList[i]].quality==2) {
// let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
// hcc.load(HeroList[i],parent)
// }
// }
// for (let i = 0; i < hc; i++) {
// if (HeroInfo[HeroList[i]].quality==1) {
// let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
// hcc.load(HeroList[i],parent)
// }
// }
this.update_hero_cards()
}
update_hero_cards(){