Visual indicator

This commit is contained in:
algodoogle
2026-07-27 18:56:28 +01:00
parent 29083a4250
commit 1a893ba9aa
6 changed files with 297 additions and 63 deletions
+9
View File
@@ -30,6 +30,11 @@ func _on_object_picked_up(_item) -> void:
plate = _item.get_node_or_null("PlateController") as PlateController
if plate:
is_washing = plate.is_dirty
if is_washing:
$AnimationPlayer.play("working")
$bubbles.show()
$water.show()
$GPUParticles3D.show()
func _on_object_dropped() -> void:
@@ -41,6 +46,10 @@ func _reset_sink():
time_washed = 0
is_washing = false
plate = null
$AnimationPlayer.play("RESET")
$water.hide()
$bubbles.hide()
$GPUParticles3D.hide()
_refresh_progress_bar()
func complete_washing():