mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
12
Scripts/Classes/Components/TimerStarter.gd
Executable file
12
Scripts/Classes/Components/TimerStarter.gd
Executable file
@@ -0,0 +1,12 @@
|
||||
class_name TimerStarter
|
||||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
if Global.level_editor != null:
|
||||
Global.level_editor.level_start.connect(start_timers)
|
||||
start_timers()
|
||||
|
||||
func start_timers() -> void:
|
||||
for i in get_children():
|
||||
if i is Timer:
|
||||
i.start()
|
Reference in New Issue
Block a user