extends Node3D ## Game mechanic testing level @onready var gunk_hall: GunkBody = %GunkHall @onready var bulkhead: Node3D = $Bulkhead @onready var open_switch: Node3D = $Bulkhead/Podium/OpenSwitch @onready var close_switch: Node3D = $Bulkhead/Podium2/CloseSwitch @onready var nodule_spawn_point: Marker3D = $NoduleSpawner/NoduleSpawnPoint static var nodule_scene: PackedScene = load("res://src/world/gunk_node/grunk_nodule.tscn") func reset() -> void: print("Resetting level!") gunk_hall.mask_control.clear(Color.BLACK) Callable(bulkhead, "close").call() Callable(open_switch, "enable").call() Callable(close_switch, "disable").call() func spawn_nodule() -> void: for c: Node in nodule_spawn_point.get_children(): c.queue_free() var instance := nodule_scene.instantiate() nodule_spawn_point.add_child(instance)