解决一些小问题

This commit is contained in:
2025-11-01 15:02:31 +08:00
parent d014e63d27
commit cb844cf65f
32 changed files with 368 additions and 505 deletions

View File

@@ -7,8 +7,7 @@ import { FightSet} from "../common/config/Mission";
import { GameEvent } from "../common/config/GameEvent";
import { HeroViewComp } from "../hero/HeroViewComp";
import { UIID } from "../common/config/GameUIConfig";
import { AtkConCom } from "../skill/AtkConCom";
import { SkillViewCom } from "../skill/SkillViewCom";
import { SkillView } from "../skill/SkillView";
const { ccclass, property } = _decorator;
@@ -141,10 +140,8 @@ export class MissionComp extends CCComp {
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {
entity.destroy();
});
ecs.query(ecs.allOf(AtkConCom)).forEach(entity => {
entity.destroy();
});
ecs.query(ecs.allOf(SkillViewCom)).forEach(entity => {
ecs.query(ecs.allOf(SkillView)).forEach(entity => {
entity.destroy();
});
}