接下来 优化技能
This commit is contained in:
@@ -175,7 +175,7 @@ export class SkillCom extends CCComp {
|
||||
|
||||
toDestroy() {
|
||||
if(this.is_destroy){
|
||||
if(this.node.isValid) this.ent.destroy()
|
||||
if(this.node.parent) this.ent.destroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user