diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-10-03 12:51:49 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-10-03 12:51:49 +0200 |
commit | 5442988a8ccecb9c323fc98557391a15ff245b87 (patch) | |
tree | 1864a03602291e2c495a8846b80ec90414060f61 /Stages/Spawn | |
parent | c8bd14d6feeca72fc96b895c9382ebc16a1caf55 (diff) |
next commit
Diffstat (limited to 'Stages/Spawn')
-rw-r--r-- | Stages/Spawn/spawn.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Stages/Spawn/spawn.gd b/Stages/Spawn/spawn.gd index fd7309a..0189632 100644 --- a/Stages/Spawn/spawn.gd +++ b/Stages/Spawn/spawn.gd @@ -16,7 +16,7 @@ func _ready() -> void: $AnimatedSprite.play("default") $AnimatedSprite.animation_finished.connect(func(): - _on_spawn_timer_timeout() + #_on_spawn_timer_timeout() $SpawnTimer.start() ) @@ -28,5 +28,5 @@ func _on_spawn_timer_timeout() -> void: get_tree().current_scene.add_child(unit) spawned_count += 1 - if spawned_count == spawn_count: + if spawned_count >= spawn_count: $SpawnTimer.stop() |