英雄去除 smchp

This commit is contained in:
2025-08-11 22:33:22 +08:00
parent 5bcf5e737b
commit 919ff09351
5 changed files with 33 additions and 83 deletions

View File

@@ -131,9 +131,6 @@ export class MissionComp extends CCComp {
}
private cleanComponents() {
smc.vmdata.hero1=JSON.parse(JSON.stringify(HeroUI))
smc.vmdata.hero2=JSON.parse(JSON.stringify(HeroUI))
smc.vmdata.hero3=JSON.parse(JSON.stringify(HeroUI))
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
}