RadialLight.gd
user_6134699
plain_text
2 years ago
343 B
13
Indexable
extends PointLight2D
var sun = null
# Called when the node enters the scene tree for the first time.
func _ready():
sun = get_parent().get_parent().get_node("Sun")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if sun.energy < -0.4:
self.visible = true
else:
self.visible = false
Editor is loading...
Leave a Comment