netmasked/scenes/world_environment.gd

9 lines
223 B
GDScript

extends WorldEnvironment
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
EventBus.change_glow.connect(_change_glow)
func _change_glow(new : bool):
environment.glow_enabled = new