mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 03:38:58 +00:00
end of lifetime fix
This commit is contained in:
parent
9ebeeddb8c
commit
af4dd8ecbd
@ -143,6 +143,8 @@ export class Enemy extends Component {
|
|||||||
this.sprite.node.active = false;
|
this.sprite.node.active = false;
|
||||||
await delay(200);
|
await delay(200);
|
||||||
|
|
||||||
|
if (this.sprite == null) break;
|
||||||
|
|
||||||
this.sprite.node.active = true;
|
this.sprite.node.active = true;
|
||||||
await delay(200);
|
await delay(200);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user