DuckRun/scenes/ui/animation.gd

13 lines
234 B
GDScript3
Raw Normal View History

extends AnimationPlayer
func pop_in():
play_backwards("out-in")
$"../../../Audio/Gui-in".play()
get_parent().show()
func pop_out():
play("out-in")
$"../../../Audio/Gui-out".play()
await animation_finished
get_parent().hide()