mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 11:18:54 +00:00
End of lifetime
This commit is contained in:
parent
1428c8118e
commit
851cdb7ead
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user