mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 11:18:54 +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