extends Node func _notification(what: int) -> void: match what: NOTIFICATION_WM_FOCUS_OUT: $AnimationPlayer.playback_active = false NOTIFICATION_WM_FOCUS_IN: $AnimationPlayer.playback_active = true