This commit is contained in:
pan
2024-08-16 10:36:45 +08:00
parent dc12cea962
commit 5e4d16d6e7
19 changed files with 4425 additions and 3222 deletions

View File

@@ -91,9 +91,12 @@ export class SkillCom extends CCComp {
// }
// }
toDestroy() {
setTimeout(() => {
this.ent.destroy()
}, 15);
if (this.node.isValid) {
setTimeout(() => {
this.ent.destroy()
}, 15);
}
}
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {