Add Dirty plates and sink. Dirty plates don't accept food

This commit is contained in:
JonShard
2026-07-17 11:52:21 +02:00
parent b0fd26f3da
commit 840908e9ff
13 changed files with 277 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
extends StaticBody3D
@onready var snap_zone: XRToolsSnapZone = $XRToolsSnapZone
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
snap_zone.has_picked_up.connect(_makeDirty)
func _makeDirty(item) -> void:
var plate: PlateController = item.get_node_or_null("PlateController") as PlateController
if not plate.is_dirty:
plate.is_dirty = true
print("Dirt Station could not find Dirty in: ", item)