forked from team-sg/hero-mark-2
12 lines
302 B
GDScript
12 lines
302 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
|
|
|
|
func _ready():
|
|
Audio.play_music(load("res://audio/music/rev83-wondering-now-short.ogg"))
|