REM/scripts/fixable.gd

15 lines
368 B
GDScript3
Raw Permalink Normal View History

2026-03-26 20:37:29 -06:00
extends CSGPolygon3D
@onready var hole: CSGPolygon3D = $StairHole
@onready var debris: CSGPolygon3D = $StairDebris
var fixed = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
if fixed:
if is_instance_valid(hole):
hole.queue_free()
if is_instance_valid(debris):
debris.queue_free()