From 5442988a8ccecb9c323fc98557391a15ff245b87 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 3 Oct 2024 12:51:49 +0200 Subject: next commit --- Stages/Spawn/spawn.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stages/Spawn') 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() -- cgit v1.2.3