Files
VRyHungry1/Stations/dirt_station.gd
T
2026-07-19 10:47:28 +02:00

16 lines
445 B
GDScript

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)