英雄去除 smchp
This commit is contained in:
@@ -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()});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user