9 lines
211 B
GDScript
9 lines
211 B
GDScript
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
|