2025-03-20 17:06:29 -06:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
@export var threshold := 100.0
|
|
|
|
@onready var spot_light_3d: SpotLight3D = %SpotLight3D
|
2025-04-22 15:26:31 -06:00
|
|
|
@onready var gunk_body: GunkBody = %GunkBody
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
_deferred_init.call_deferred()
|
|
|
|
|
|
|
|
|
|
|
|
func _deferred_init() -> void:
|
|
|
|
gunk_body.trigger_recompute()
|
2025-03-20 17:06:29 -06:00
|
|
|
|
|
|
|
|
|
|
|
func _on_clear_total_updated(clear_total: float) -> void:
|
|
|
|
spot_light_3d.visible = clear_total > threshold
|