Death effect

This commit is contained in:
Martin
2023-01-02 13:51:49 +01:00
parent af4dd8ecbd
commit 8d241c7886
12 changed files with 327 additions and 130 deletions

View File

@@ -143,7 +143,7 @@ export class Enemy extends Component {
this.sprite.node.active = false;
await delay(200);
if (this.sprite == null) break;
if (this.sprite == null) break; // exit scene
this.sprite.node.active = true;
await delay(200);