diff --git a/assets/Scripts/Game/Unit/Enemy/Enemy.ts b/assets/Scripts/Game/Unit/Enemy/Enemy.ts index aea7b15..8eca129 100644 --- a/assets/Scripts/Game/Unit/Enemy/Enemy.ts +++ b/assets/Scripts/Game/Unit/Enemy/Enemy.ts @@ -143,6 +143,8 @@ export class Enemy extends Component { this.sprite.node.active = false; await delay(200); + if (this.sprite == null) break; + this.sprite.node.active = true; await delay(200); }