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