fix unfocused animations in more places

This commit is contained in:
Haze Weathers 2024-03-05 22:16:59 -05:00
parent 0bae67fd3b
commit 0e63883cdd
3 changed files with 26 additions and 8 deletions

View file

@ -18,6 +18,15 @@ onready var perfect_bonus_score = $ShardsAndBonuses/Bonuses/PerfectBonus/Perfect
var text_3d = null
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() -> void:
#preload final score
text_3d = Text3D.instance()