mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 19:28:53 +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;
|
||||
await delay(200);
|
||||
|
||||
if (this.sprite == null) break;
|
||||
|
||||
this.sprite.node.active = true;
|
||||
await delay(200);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user