From 6fc8efd46dd5787d22755d08d2b0467804d19bb0 Mon Sep 17 00:00:00 2001 From: cakipaul Date: Mon, 21 Jul 2025 17:25:04 +0800 Subject: [PATCH] sfx update --- scene/entity/audio/sfx.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/entity/audio/sfx.gd b/scene/entity/audio/sfx.gd index a765f165..52496799 100644 --- a/scene/entity/audio/sfx.gd +++ b/scene/entity/audio/sfx.gd @@ -44,7 +44,7 @@ func _on_pause_counter_updated() -> void: func _set_up_process_mode_by_mode(): # 如果是 debug panel,则 pause - if mode == "场景背景音" and not SceneManager.pause_counter_arr.has("debugging"): + if mode == "场景背景音" and (SceneManager.is_node_ready() and not SceneManager.pause_counter_arr.has("debugging")): process_mode = Node.PROCESS_MODE_ALWAYS else: if SceneManager.pause_counter_arr.has("debugging"):