(wip) Food spawning on prey death
This commit is contained in:
@@ -33,6 +33,7 @@ func _spawn_creature(position: Vector2) -> void:
|
||||
instance.position = position
|
||||
add_child(instance)
|
||||
if instance.has_signal("died"):
|
||||
#instance.died.connect(GameManager.foodManager._spawn_food_on_position)
|
||||
instance.died.connect(_on_entity_died)
|
||||
|
||||
func _on_entity_died() -> void:
|
||||
|
||||
Reference in New Issue
Block a user