清理 skills下的无效文件,有用的迁移到skill目录
This commit is contained in:
@@ -6,8 +6,9 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
|
||||
import { FightSet} from "../common/config/Mission";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
import { SkillCom } from "../skills/SkillCom";
|
||||
import { UIID } from "../common/config/GameUIConfig";
|
||||
import { AtkConCom } from "../skill/AtkConCom";
|
||||
import { SkillViewCom } from "../skill/SkillViewCom";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
|
||||
@@ -136,7 +137,8 @@ export class MissionComp extends CCComp {
|
||||
|
||||
private cleanComponents() {
|
||||
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
|
||||
ecs.query(ecs.allOf(SkillCom)).forEach(entity => {entity.remove(SkillCom);entity.destroy()});
|
||||
ecs.query(ecs.allOf(AtkConCom)).forEach(entity => {entity.remove(AtkConCom);entity.destroy()});
|
||||
ecs.query(ecs.allOf(SkillViewCom)).forEach(entity => {entity.remove(SkillViewCom);entity.destroy()});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user