mlpcardgame/Scenes/Scripts/BoardUI.gd

9 lines
203 B
GDScript

extends Control
onready var animation = $AnimationPlayer
func _card_selected(card: Card):
animation.play("fade ui card")
func _card_unselected(card: Card):
animation.play_backwards("fade ui card")