1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 23:54:23 +00:00

Remove logging from MoveTowards

This commit is contained in:
Steffo 2024-04-19 01:57:26 +02:00
parent 0b68127747
commit 7683d45747
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 3 additions and 5 deletions

View file

@ -24,6 +24,9 @@ func set_target(value: Node2D) -> void:
func clear_target() -> void:
target = null
func log_target() -> void:
Log.p(self, "Target: %s" % target)
func _physics_process(delta: float) -> void:
if enabled:
@ -33,6 +36,3 @@ func _physics_process(delta: float) -> void:
move.emit(norm * delta * speed)
else:
move.emit(Vector2.ZERO)
func _on_changed_target(new: Node2D) -> void:
Log.p(self, "Changed target to: %s" % new)

View file

@ -4,5 +4,3 @@
[node name="MoveTowards" type="Node2D"]
script = ExtResource("1_256ue")
[connection signal="changed_target" from="." to="." method="_on_changed_target"]