Fix: Added call_deferred on _spawn_minimum
This commit is contained in:
parent
69776a6973
commit
6432b709ef
|
|
@ -6,7 +6,7 @@ extends SpawnManager2D
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
spawnRange = GameManager.extent
|
spawnRange = GameManager.extent
|
||||||
#spawnRange = cam.get_viewport_rect()
|
#spawnRange = cam.get_viewport_rect()
|
||||||
_spawn_minimum()
|
call_deferred("_spawn_minimum")
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,4 @@ func _spawn_creature(position: Vector2) -> void:
|
||||||
|
|
||||||
func _on_entity_died() -> void:
|
func _on_entity_died() -> void:
|
||||||
_currentCount = max(0, _currentCount-1)
|
_currentCount = max(0, _currentCount-1)
|
||||||
_spawn_minimum()
|
call_deferred("_spawn_minimum")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue