13 lines
205 B
GDScript
13 lines
205 B
GDScript
extends CPUParticles
|
|
|
|
onready var light = $OmniLight
|
|
|
|
func _on_Timer_timeout():
|
|
emitting = !emitting
|
|
if light:
|
|
if light.light_energy > 0 :
|
|
light.light_energy = 0
|
|
else:
|
|
light.light_energy = 5
|
|
|