dd
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user