技能的销毁 还存在问题
This commit is contained in:
@@ -82,14 +82,15 @@ export class CSkillComp extends CCComp {
|
||||
// console.log("CSkillComp toDestroy");
|
||||
if (this.node.isValid) {
|
||||
// console.log("CSkillComp.node.isValid");
|
||||
setTimeout(() => {
|
||||
// console.log("CSkillComp.node.destroy",this);
|
||||
this.ent.destroy()
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
this.sd.reset()
|
||||
this.cd.reset()
|
||||
|
||||
this.node.destroy();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user