change deposit point

This commit is contained in:
2024-10-07 05:41:43 +10:00
parent aca7c5902f
commit 76a5645ed3
3 changed files with 9 additions and 9 deletions

View File

@@ -67,10 +67,7 @@ func _on_gathering_target_set(pos: Vector3) -> void:
if state != AntGathererState.GATHERING:
return
if pos != Vector3.ZERO:
nav_agent.set_target_position(pos)
else:
nav_agent.set_target_position(anthill.global_position)
nav_agent.set_target_position(pos)
func _on_gathering_stop() -> void: