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

Remove debug logging from MoveStraight

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

View file

@ -26,10 +26,10 @@ func clear_direction() -> void:
func randomize_direction() -> void:
direction = Vector2.from_angle(Random.rng.randf_range(0, 2*PI))
func log_state() -> void:
Log.p(self, "Direction: %s | Speed: %s" % [direction, speed])
func _physics_process(delta: float) -> void:
if enabled:
move.emit(direction * delta * speed)
func _on_changed_direction(new: Vector2) -> void:
Log.p(self, "Changed direction to: %s" % new)

View file

@ -4,5 +4,3 @@
[node name="MoveStraight" type="Node2D"]
script = ExtResource("1_8yf73")
[connection signal="changed_direction" from="." to="." method="_on_changed_direction"]