解决一些小问题
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export class SIconCompComp extends CCComp {
|
||||
|
||||
update_data(s_uuid:number){
|
||||
let skill_data = SkillSet[s_uuid]
|
||||
this.node.getChildByName("icon").getComponent(Sprite).spriteFrame = oops.res.get("game/heros/cards/"+skill_data.path, SpriteFrame)
|
||||
this.node.getChildByName("icon").getComponent(Sprite).spriteFrame = oops.res.get("game/heros/cards/"+skill_data.icon, SpriteFrame)
|
||||
}
|
||||
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
|
||||
Reference in New Issue
Block a user