generated from krampus/template-godot4
9 lines
211 B
GDScript
9 lines
211 B
GDScript
extends Node3D
|
|
|
|
@export var threshold := 100.0
|
|
@onready var spot_light_3d: SpotLight3D = %SpotLight3D
|
|
|
|
|
|
func _on_clear_total_updated(clear_total: float) -> void:
|
|
spot_light_3d.visible = clear_total > threshold
|