forked from team-sg/hero-mark-2
fix unfocused animations in more places
This commit is contained in:
parent
0bae67fd3b
commit
0e63883cdd
3 changed files with 26 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue