End of lifetime

This commit is contained in:
Martin 2023-01-04 12:39:24 +01:00
parent 1428c8118e
commit 851cdb7ead

View File

@ -139,7 +139,7 @@ export class Enemy extends Component {
this.endOfLifetimeTriggered = true; this.endOfLifetimeTriggered = true;
while (this.node.active) { while (this.node?.active) {
this.sprite.node.active = false; this.sprite.node.active = false;
await delay(200); await delay(200);