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:
parent
0b68127747
commit
7683d45747
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -4,5 +4,3 @@
|
|||
|
||||
[node name="MoveTowards" type="Node2D"]
|
||||
script = ExtResource("1_256ue")
|
||||
|
||||
[connection signal="changed_target" from="." to="." method="_on_changed_target"]
|
||||
|
|
Loading…
Reference in a new issue