diff --git a/assets/Scripts/Game/Unit/Enemy/Enemy.ts b/assets/Scripts/Game/Unit/Enemy/Enemy.ts index df7c957..befb18f 100644 --- a/assets/Scripts/Game/Unit/Enemy/Enemy.ts +++ b/assets/Scripts/Game/Unit/Enemy/Enemy.ts @@ -139,7 +139,7 @@ export class Enemy extends Component { this.endOfLifetimeTriggered = true; - while (this.node.active) { + while (this.node?.active) { this.sprite.node.active = false; await delay(200);