Add check_reference helper

This commit is contained in:
JonShard
2026-08-20 11:46:00 +02:00
parent 6432dca31a
commit a79096eb1d
14 changed files with 45 additions and 54 deletions
+3 -6
View File
@@ -38,12 +38,9 @@ func _on_station_bought(_instance: Node3D):
func _ready() -> void:
SweetLogger.debug("->[]")
if not station:
SweetLogger.warning("{0} missing station reference", [name])
if not move_handle:
SweetLogger.warning("{0} missing move_handle reference", [name])
if not move_ghost:
SweetLogger.warning("{0} missing move_ghost reference", [name])
Helper.check_reference(self, station, StaticBody3D)
Helper.check_reference(self, move_handle, XRToolsPickable)
Helper.check_reference(self, move_ghost, Area3D)
move_handle_rigid = move_handle as RigidBody3D
original_collision_layer = station.collision_layer