TimerStarter.gd 252 B

123456789101112
  1. class_name TimerStarter
  2. extends Node
  3. func _ready() -> void:
  4. if Global.level_editor != null:
  5. Global.level_editor.level_start.connect(start_timers)
  6. start_timers()
  7. func start_timers() -> void:
  8. for i in get_children():
  9. if i is Timer:
  10. i.start()