英雄设定大概完成,接下来需要借鉴其他热门游戏设定,再修改
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user