You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
337 B
GDScript

extends Control
2 years ago
@onready var animation = $AnimationPlayer as AnimationPlayer
func _ready():
SignalManager.level_loading_start.connect(on_level_loading_start)
SignalManager.level_loading_end.connect(on_level_loading_end)
func on_level_loading_start():
animation.play("start")
func on_level_loading_end():
animation.play("end")