去除 英雄升级相关
This commit is contained in:
@@ -2,7 +2,6 @@ import { _decorator,Button,color,EventHandler,EventTouch,instantiate,Label,NodeE
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { HeroInfo, HeroList } from "../common/config/heroSet";
|
||||
import { HeroCard } from "../hero/HeroCard";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { UIID } from "../common/config/GameUIConfig";
|
||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
@@ -38,26 +37,8 @@ export class HeroHomeComp extends CCComp {
|
||||
parent.getComponent(UITransform).setContentSize(hc*185,230)
|
||||
// console.log("hc",hc,parent.getComponent(UITransform))
|
||||
console.log("parent",parent)
|
||||
for (let i = 0; i < hc; i++) {
|
||||
let hcc =ecs.getEntity<HeroCard>(HeroCard)
|
||||
hcc.load(HeroList[i],parent)
|
||||
// if (HeroInfo[HeroList[i]].quality==3) {
|
||||
// let hcc =ecs.getEntity<HeroCard>(HeroCard)
|
||||
// hcc.load(HeroList[i],parent)
|
||||
// }
|
||||
}
|
||||
// for (let i = 0; i < hc; i++) {
|
||||
// if (HeroInfo[HeroList[i]].quality==2) {
|
||||
// let hcc =ecs.getEntity<HeroCard>(HeroCard)
|
||||
// hcc.load(HeroList[i],parent)
|
||||
// }
|
||||
// }
|
||||
// for (let i = 0; i < hc; i++) {
|
||||
// if (HeroInfo[HeroList[i]].quality==1) {
|
||||
// let hcc =ecs.getEntity<HeroCard>(HeroCard)
|
||||
// hcc.load(HeroList[i],parent)
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
hero_show(uuid:number) {
|
||||
this.node.getChildByName("show").active=true
|
||||
|
||||
Reference in New Issue
Block a user