This commit is contained in:
parent
4a31db6411
commit
88c05bbd8c
21 changed files with 194 additions and 75 deletions
|
@ -45,6 +45,8 @@ func spawn_loop():
|
|||
func spawn_enemies(count: int, duration: float, enemy: WaveEnemy):
|
||||
var delay = duration / count
|
||||
for i in range(count):
|
||||
if get_tree().paused:
|
||||
await get_parent().unpaused
|
||||
spawn(enemy)
|
||||
await get_tree().create_timer(delay).timeout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue