mlpcardgame/Scenes/Loading/LoadingScreen.gd

19 lines
319 B
GDScript3
Raw Permalink Normal View History

2019-06-01 15:38:26 +00:00
extends Control
2019-06-01 21:52:16 +00:00
signal faded_in()
signal faded_out()
2019-06-01 15:38:26 +00:00
2019-06-01 21:52:16 +00:00
func fade_in():
2019-06-01 15:38:26 +00:00
$AnimationPlayer.play("fade_in")
2019-06-01 21:52:16 +00:00
func fade_out():
$AnimationPlayer.play("fade_out")
func _on_animation_finished(anim_name):
match anim_name:
"fade_in":
emit_signal("faded_in")
"fade_out":
$Cards.cleanup()
emit_signal("faded_out")